dominiks commited on
Commit
1f60f59
·
verified ·
1 Parent(s): 9f5f0ea

Upload app_federal.py

Browse files
Files changed (1) hide show
  1. app_federal.py +1 -1
app_federal.py CHANGED
@@ -236,7 +236,7 @@ def rerank_with_chatGPT(query, search_results):
236
  out = text_prompt_call("gpt-4o", system_prompt, user_prompt)
237
  print ("OUT", out)
238
  try:
239
- out = literal_eval(re.findall(r"\[.*?\]", a)[0])
240
  out_dict = [search_results_as_dict[str(i)] for i in out]
241
  print ("SUCCESS")
242
  except Exception as e:
 
236
  out = text_prompt_call("gpt-4o", system_prompt, user_prompt)
237
  print ("OUT", out)
238
  try:
239
+ out = literal_eval(re.findall(r"\[.*?\]", out)[0])
240
  out_dict = [search_results_as_dict[str(i)] for i in out]
241
  print ("SUCCESS")
242
  except Exception as e: