Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
import tempfile
|
| 3 |
import asyncio
|
| 4 |
import streamlit as st
|
|
@@ -16,8 +18,6 @@ try:
|
|
| 16 |
except RuntimeError:
|
| 17 |
asyncio.set_event_loop(asyncio.new_event_loop())
|
| 18 |
|
| 19 |
-
# Make sure Streamlit writes configs inside the repo, not root
|
| 20 |
-
os.environ["STREAMLIT_HOME"] = os.path.join(os.getcwd(), ".streamlit")
|
| 21 |
|
| 22 |
# ---------------- Streamlit Page Setup ----------------
|
| 23 |
st.set_page_config(page_title="PDF RAG Chatbot", layout="wide")
|
|
|
|
| 1 |
import os
|
| 2 |
+
os.environ["STREAMLIT_HOME"] = "/home/user"
|
| 3 |
+
|
| 4 |
import tempfile
|
| 5 |
import asyncio
|
| 6 |
import streamlit as st
|
|
|
|
| 18 |
except RuntimeError:
|
| 19 |
asyncio.set_event_loop(asyncio.new_event_loop())
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# ---------------- Streamlit Page Setup ----------------
|
| 23 |
st.set_page_config(page_title="PDF RAG Chatbot", layout="wide")
|