Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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:
|