ykl7 commited on
Commit
95d8fc2
·
1 Parent(s): f6f7e66
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -160,7 +160,7 @@ def reasoner(query: str, documents: list[str], llm_client: Any):
160
  else:
161
  message = "Using o3-mini to quickly analyze the claim..."
162
 
163
- if not documents:
164
  prompt = templates["no_evidence"].format(claim=query)
165
  llm_response = llm_client.run_inference(prompt)
166
 
 
160
  else:
161
  message = "Using o3-mini to quickly analyze the claim..."
162
 
163
+ if not documents or len(documents) == 0:
164
  prompt = templates["no_evidence"].format(claim=query)
165
  llm_response = llm_client.run_inference(prompt)
166