OsBaran commited on
Commit
53c07ae
·
1 Parent(s): 9d76542

Add application

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: