Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -4
src/streamlit_app.py
CHANGED
|
@@ -7,16 +7,16 @@ import logging
|
|
| 7 |
import time
|
| 8 |
import os
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
-
from
|
| 11 |
-
from
|
| 12 |
# --- 1. Configuration ---
|
| 13 |
# API_URL = "https://sra25-fastapi-backend.hf.space"
|
| 14 |
# API_URL = "http://localhost:8000"
|
| 15 |
|
| 16 |
# load_dotenv()
|
| 17 |
# login_hf()
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
# --- 1. Database Setup ---
|
| 22 |
|
|
|
|
| 7 |
import time
|
| 8 |
import os
|
| 9 |
from dotenv import load_dotenv
|
| 10 |
+
from langchain_mymod.langgraph_init.UploadDocs import upload_documents
|
| 11 |
+
from langchain_mymod.langgraph_init import submit_feedback, get_conversations,get_conversation_history, chat_with_rag, login_hf
|
| 12 |
# --- 1. Configuration ---
|
| 13 |
# API_URL = "https://sra25-fastapi-backend.hf.space"
|
| 14 |
# API_URL = "http://localhost:8000"
|
| 15 |
|
| 16 |
# load_dotenv()
|
| 17 |
# login_hf()
|
| 18 |
+
hf_token = os.getenv("hf_user_token") or os.environ.get("hf_user_token")
|
| 19 |
+
login(hf_token)
|
| 20 |
|
| 21 |
# --- 1. Database Setup ---
|
| 22 |
|