37-AN
commited on
Commit
·
03016b2
1
Parent(s):
4fe6054
Initial commit for Hugging Face Space deployment
Browse files
app.py
CHANGED
@@ -14,5 +14,5 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
14 |
os.makedirs('data/documents', exist_ok=True)
|
15 |
os.makedirs('data/vector_db', exist_ok=True)
|
16 |
|
17 |
-
# Run the Streamlit app
|
18 |
-
subprocess.run(["streamlit", "run", "app/ui/streamlit_app.py"])
|
|
|
14 |
os.makedirs('data/documents', exist_ok=True)
|
15 |
os.makedirs('data/vector_db', exist_ok=True)
|
16 |
|
17 |
+
# Run the Streamlit app with specific port to match huggingface-space.yml
|
18 |
+
subprocess.run(["streamlit", "run", "app/ui/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"])
|