Spaces:
Runtime error
Runtime error
adding logs
Browse files- src/streamlit_app.py +15 -0
src/streamlit_app.py
CHANGED
|
@@ -3,12 +3,27 @@ import streamlit as st
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from rag_engine import get_top_chunks
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# --- Environment setup ---
|
| 7 |
os.environ["STREAMLIT_HOME"] = "/tmp"
|
| 8 |
os.environ["STREAMLIT_DISABLE_LOGGING"] = "1"
|
| 9 |
os.environ["STREAMLIT_TELEMETRY_ENABLED"] = "0"
|
| 10 |
os.environ["STREAMLIT_WATCH_USE_POLLING"] = "true"
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# --- Streamlit page config ---
|
| 13 |
st.set_page_config(page_title="Chat with Datamir Hub Assistant", page_icon="💬")
|
| 14 |
st.title("💬 Chat with Datamir Hub Assistant")
|
|
|
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from rag_engine import get_top_chunks
|
| 5 |
|
| 6 |
+
import os
|
| 7 |
+
|
| 8 |
+
print("=== DEBUG INFO ===")
|
| 9 |
+
print("Current working dir:", os.getcwd())
|
| 10 |
+
print("Files in root:", os.listdir("."))
|
| 11 |
+
print("Files in /app:", os.listdir("/app") if os.path.exists("/app") else "No /app folder")
|
| 12 |
+
print("Files in ./data:", os.listdir("./data") if os.path.exists("./data") else "No ./data folder")
|
| 13 |
+
|
| 14 |
+
|
| 15 |
# --- Environment setup ---
|
| 16 |
os.environ["STREAMLIT_HOME"] = "/tmp"
|
| 17 |
os.environ["STREAMLIT_DISABLE_LOGGING"] = "1"
|
| 18 |
os.environ["STREAMLIT_TELEMETRY_ENABLED"] = "0"
|
| 19 |
os.environ["STREAMLIT_WATCH_USE_POLLING"] = "true"
|
| 20 |
|
| 21 |
+
print("=== DEBUG INFO 2 ===")
|
| 22 |
+
print("Current working dir:", os.getcwd())
|
| 23 |
+
print("Files in root:", os.listdir("."))
|
| 24 |
+
print("Files in /app:", os.listdir("/app") if os.path.exists("/app") else "No /app folder")
|
| 25 |
+
print("Files in ./data:", os.listdir("./data") if os.path.exists("./data") else "No ./data folder")
|
| 26 |
+
|
| 27 |
# --- Streamlit page config ---
|
| 28 |
st.set_page_config(page_title="Chat with Datamir Hub Assistant", page_icon="💬")
|
| 29 |
st.title("💬 Chat with Datamir Hub Assistant")
|