Spaces:
Runtime error
Runtime error
Update Sejarah.py
Browse files- 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
|
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):
|