Spaces:
Sleeping
Sleeping
MVPilgrim
commited on
Commit
·
f4bd5a1
1
Parent(s):
ddd16cb
install
Browse files
app.py
CHANGED
|
@@ -53,13 +53,13 @@ try:
|
|
| 53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
| 54 |
time.sleep(10)
|
| 55 |
#subprocess.run(["/app/cmd.sh 'ps -ef'"])
|
| 56 |
-
|
| 57 |
except Exception as e:
|
| 58 |
emsg = str(e)
|
| 59 |
logger.error(f"### subprocess.run or displayStartup.shLog EXCEPTION. e: {emsg}")
|
| 60 |
logger.info("### Running startup.sh complete")
|
| 61 |
|
| 62 |
-
def
|
| 63 |
logger.info("### Displaying /app/startup.log")
|
| 64 |
with open("/app/startup.log", "r") as file:
|
| 65 |
line = file.readline().rstrip()
|
|
@@ -75,7 +75,7 @@ try:
|
|
| 75 |
with st.spinner('If needed, initialize Weaviate DB and text2vec-transformer...'):
|
| 76 |
runStartup()
|
| 77 |
try:
|
| 78 |
-
|
| 79 |
except Exception as e2:
|
| 80 |
emsg = str(e2)
|
| 81 |
logger.error(f"#### Displaying startup.log EXCEPTION. e2: {emsg}")
|
|
|
|
| 53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
| 54 |
time.sleep(10)
|
| 55 |
#subprocess.run(["/app/cmd.sh 'ps -ef'"])
|
| 56 |
+
displayStartupshLog()
|
| 57 |
except Exception as e:
|
| 58 |
emsg = str(e)
|
| 59 |
logger.error(f"### subprocess.run or displayStartup.shLog EXCEPTION. e: {emsg}")
|
| 60 |
logger.info("### Running startup.sh complete")
|
| 61 |
|
| 62 |
+
def displayStartupshLog()
|
| 63 |
logger.info("### Displaying /app/startup.log")
|
| 64 |
with open("/app/startup.log", "r") as file:
|
| 65 |
line = file.readline().rstrip()
|
|
|
|
| 75 |
with st.spinner('If needed, initialize Weaviate DB and text2vec-transformer...'):
|
| 76 |
runStartup()
|
| 77 |
try:
|
| 78 |
+
displayStartupshLog()
|
| 79 |
except Exception as e2:
|
| 80 |
emsg = str(e2)
|
| 81 |
logger.error(f"#### Displaying startup.log EXCEPTION. e2: {emsg}")
|