sengzi commited on
Commit
9c65493
1 Parent(s): b53bbba

Update Sejarah.py

Browse files
Files changed (1) hide show
  1. Sejarah.py +3 -5
Sejarah.py CHANGED
@@ -73,12 +73,10 @@ class Sejarah:
73
  }
74
  )
75
 
76
- answer = result['answers'][0].answer
77
- context = result['answers'][0].context
78
-
79
- final_answer = self.language_converter(answer + ", " + context, language, "answer")
80
 
81
- return final_answer
82
 
83
 
84
  def detect_language(self, content):
 
73
  }
74
  )
75
 
76
+ answer = self.language_converter(result['answers'][0].answer, language, "answer")
77
+ context = self.language_converter(result['answers'][0].context, language, "answer")
 
 
78
 
79
+ return answer, context
80
 
81
 
82
  def detect_language(self, content):