Spaces:
Running
Running
Add application
Browse files
app.py
CHANGED
@@ -186,8 +186,9 @@ def predict(input_news, language):
|
|
186 |
# Tahmin sonucunu yazdır
|
187 |
# result = "Doğru" if prediction == 1 else "Yanlış"
|
188 |
# print(f"Haberin durumu: {result}")
|
189 |
-
return explanation
|
190 |
print(explanation)
|
|
|
|
|
191 |
|
192 |
|
193 |
|
@@ -206,7 +207,7 @@ def predict(input_news, language):
|
|
206 |
result = classifier_tr(text)
|
207 |
else:
|
208 |
result = {"error": "Unsupported language"}
|
209 |
-
return result
|
210 |
|
211 |
# Arayüz
|
212 |
gr.Interface(fn=predict,
|
|
|
186 |
# Tahmin sonucunu yazdır
|
187 |
# result = "Doğru" if prediction == 1 else "Yanlış"
|
188 |
# print(f"Haberin durumu: {result}")
|
|
|
189 |
print(explanation)
|
190 |
+
return explanation
|
191 |
+
|
192 |
|
193 |
|
194 |
|
|
|
207 |
result = classifier_tr(text)
|
208 |
else:
|
209 |
result = {"error": "Unsupported language"}
|
210 |
+
# return result
|
211 |
|
212 |
# Arayüz
|
213 |
gr.Interface(fn=predict,
|