LightRT commited on
Commit
86cca3c
·
1 Parent(s): 02f2fb3
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://backend:8000/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("http://backend:8000/chat", json=payload)
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