Arcpolar commited on
Commit
ac4abb3
·
verified ·
1 Parent(s): 35640a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def fact_checker(claim:str)-> str: #it's import to specify the return type
25
 
26
  # Analyze the results to check if the claim is mentioned
27
  lower_claim = claim.lower()
28
- positive_hits = sum(1 for result in result.split("\n") if lower_claim in result.lower())
29
 
30
  # Generate a response based on the number of positive hits
31
  if positive_hits >= 3:
 
25
 
26
  # Analyze the results to check if the claim is mentioned
27
  lower_claim = claim.lower()
28
+ positive_hits = sum(1 for result in results.split("\n") if lower_claim in result.lower())
29
 
30
  # Generate a response based on the number of positive hits
31
  if positive_hits >= 3: