Spaces:
Running
Running
Add application
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ def predict(input_news, language):
|
|
187 |
# result = "Doğru" if prediction == 1 else "Yanlış"
|
188 |
# print(f"Haberin durumu: {result}")
|
189 |
print(explanation)
|
190 |
-
return explanation
|
191 |
|
192 |
|
193 |
|
@@ -202,7 +202,7 @@ def predict(input_news, language):
|
|
202 |
print(f"Haberin durumu: {result}")
|
203 |
print("Haberin açıklaması:")
|
204 |
print(explanation)
|
205 |
-
return explanation
|
206 |
elif language == "tr":
|
207 |
result = classifier_tr(text)
|
208 |
else:
|
|
|
187 |
# result = "Doğru" if prediction == 1 else "Yanlış"
|
188 |
# print(f"Haberin durumu: {result}")
|
189 |
print(explanation)
|
190 |
+
return {explanation}
|
191 |
|
192 |
|
193 |
|
|
|
202 |
print(f"Haberin durumu: {result}")
|
203 |
print("Haberin açıklaması:")
|
204 |
print(explanation)
|
205 |
+
return {explanation}
|
206 |
elif language == "tr":
|
207 |
result = classifier_tr(text)
|
208 |
else:
|