davidfearne
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def call_chat_api(data: ChatRequestClient):
|
|
144 |
if response.status_code == 200:
|
145 |
body = response.json()
|
146 |
query = body.get("content")
|
147 |
-
final_results = search_and_reconstruct(query, df_chunks)
|
148 |
return body, final_results # Return the JSON response if successful
|
149 |
else:
|
150 |
return "An error occured" # Return the raw response text if not successful
|
|
|
144 |
if response.status_code == 200:
|
145 |
body = response.json()
|
146 |
query = body.get("content")
|
147 |
+
final_results = search_and_reconstruct(query, df_chunks, k)
|
148 |
return body, final_results # Return the JSON response if successful
|
149 |
else:
|
150 |
return "An error occured" # Return the raw response text if not successful
|