davidfearne commited on
Commit
9ef50f6
·
verified ·
1 Parent(s): 2bb64b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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