Spaces:
Sleeping
Sleeping
Commit
·
5d50c30
1
Parent(s):
084c6f1
added sys to detect folders
Browse files- Dockerfile +1 -1
- streamlit_app.py → src/streamlit_app.py +3 -0
Dockerfile
CHANGED
@@ -18,4 +18,4 @@ EXPOSE 8501
|
|
18 |
|
19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
20 |
|
21 |
-
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
18 |
|
19 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
20 |
|
21 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
streamlit_app.py → src/streamlit_app.py
RENAMED
@@ -1,6 +1,9 @@
|
|
1 |
import asyncio
|
2 |
import streamlit as st
|
3 |
import tempfile
|
|
|
|
|
|
|
4 |
from pdf_agent import PDFAgent
|
5 |
from weather_agent import WeatherAgent
|
6 |
|
|
|
1 |
import asyncio
|
2 |
import streamlit as st
|
3 |
import tempfile
|
4 |
+
import sys
|
5 |
+
import os
|
6 |
+
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
7 |
from pdf_agent import PDFAgent
|
8 |
from weather_agent import WeatherAgent
|
9 |
|