Spaces:
Running
Running
debug
Browse files- Dockerfile +7 -5
- semsearch.py +2 -2
Dockerfile
CHANGED
@@ -78,8 +78,10 @@ WORKDIR /app
|
|
78 |
#CMD ["/app/startupDbgUI.sh"]
|
79 |
EXPOSE 8501
|
80 |
#CMD /app/startup.sh; /usr/local/bin/streamlit run semsearch.py --server.port=8501 --server.address=0.0.0.0
|
81 |
-
CMD streamlit run stream.py \
|
82 |
-
--server.headless true \
|
83 |
-
--server.enableCORS false \
|
84 |
-
--server.enableXsrfProtection false \
|
85 |
-
--server.fileWatcherType none
|
|
|
|
|
|
78 |
#CMD ["/app/startupDbgUI.sh"]
|
79 |
EXPOSE 8501
|
80 |
#CMD /app/startup.sh; /usr/local/bin/streamlit run semsearch.py --server.port=8501 --server.address=0.0.0.0
|
81 |
+
#CMD streamlit run stream.py \
|
82 |
+
# --server.headless true \
|
83 |
+
# --server.enableCORS false \
|
84 |
+
# --server.enableXsrfProtection false \
|
85 |
+
# --server.fileWatcherType none
|
86 |
+
|
87 |
+
CMD streamlit run stream.py
|
semsearch.py
CHANGED
@@ -34,8 +34,8 @@ logging.basicConfig(level=logging.INFO)
|
|
34 |
|
35 |
def runStartup():
|
36 |
result = subprocess.run(["bash", "startup.sh"], capture_output=True, text=True)
|
37 |
-
|
38 |
-
|
39 |
logger(f"Return code: {result.returncode}")
|
40 |
logger("### Running startup.sh")
|
41 |
runStartup()
|
|
|
34 |
|
35 |
def runStartup():
|
36 |
result = subprocess.run(["bash", "startup.sh"], capture_output=True, text=True)
|
37 |
+
logger(f"startup.sh stdout: {result.stdout}")
|
38 |
+
logger(f"startup.sh stderr: {result.stderr}")
|
39 |
logger(f"Return code: {result.returncode}")
|
40 |
logger("### Running startup.sh")
|
41 |
runStartup()
|