Done
Browse files
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 |
-
"http://
|
| 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("http://
|
| 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 |
+
"http://127.0.0.1:8000",
|
| 37 |
files=files,
|
| 38 |
data=payload_data
|
| 39 |
)
|
|
|
|
| 74 |
|
| 75 |
try:
|
| 76 |
# Send the question to your LangGraph backend
|
| 77 |
+
chat_response = requests.post("http://127.0.0.1:8000", json=payload)
|
| 78 |
|
| 79 |
if chat_response.status_code == 200:
|
| 80 |
# Extract the answer from the JSON response
|
src/__pycache__/embedding.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/embedding.cpython-312.pyc and b/src/__pycache__/embedding.cpython-312.pyc differ
|
|
|
src/__pycache__/ingestion.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/ingestion.cpython-312.pyc and b/src/__pycache__/ingestion.cpython-312.pyc differ
|
|
|
src/__pycache__/retrieval.cpython-312.pyc
CHANGED
|
Binary files a/src/__pycache__/retrieval.cpython-312.pyc and b/src/__pycache__/retrieval.cpython-312.pyc differ
|
|
|