Spaces:
Running
on
Zero
Running
on
Zero
Upload app_federal.py
Browse files- 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"\[.*?\]",
|
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:
|