Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -33,7 +33,7 @@ with st.sidebar:
|
|
| 33 |
# Send the POST request to your local FastAPI server
|
| 34 |
try:
|
| 35 |
response = requests.post(
|
| 36 |
-
"https://lightrt-pdf-rag.hf.space/upload
|
| 37 |
files=files,
|
| 38 |
data=payload_data
|
| 39 |
)
|
|
@@ -74,7 +74,7 @@ if prompt := st.chat_input("Ask a question about your documents..."):
|
|
| 74 |
|
| 75 |
try:
|
| 76 |
# Send the question to your LangGraph backend
|
| 77 |
-
chat_response = requests.post("https://lightrt-pdf-rag.hf.space/chat
|
| 78 |
|
| 79 |
if chat_response.status_code == 200:
|
| 80 |
# Extract the answer from the JSON response
|
|
|
|
| 33 |
# Send the POST request to your local FastAPI server
|
| 34 |
try:
|
| 35 |
response = requests.post(
|
| 36 |
+
"https://lightrt-pdf-rag.hf.space/upload",
|
| 37 |
files=files,
|
| 38 |
data=payload_data
|
| 39 |
)
|
|
|
|
| 74 |
|
| 75 |
try:
|
| 76 |
# Send the question to your LangGraph backend
|
| 77 |
+
chat_response = requests.post("https://lightrt-pdf-rag.hf.space/chat", json=payload)
|
| 78 |
|
| 79 |
if chat_response.status_code == 200:
|
| 80 |
# Extract the answer from the JSON response
|