Update pages/bot.py
Browse files- pages/bot.py +1 -1
pages/bot.py
CHANGED
@@ -91,7 +91,7 @@ def get_llm_answer(user_question):
|
|
91 |
qa_pipeline = pipeline("question-answering", model="deutsche-telekom/bert-multi-english-german-squad2", tokenizer="deutsche-telekom/bert-multi-english-german-squad2")
|
92 |
|
93 |
# Frage beantworten mit Q&A Pipeline
|
94 |
-
answer = qa_pipeline(question=
|
95 |
|
96 |
return answer["answer"]
|
97 |
|
|
|
91 |
qa_pipeline = pipeline("question-answering", model="deutsche-telekom/bert-multi-english-german-squad2", tokenizer="deutsche-telekom/bert-multi-english-german-squad2")
|
92 |
|
93 |
# Frage beantworten mit Q&A Pipeline
|
94 |
+
answer = qa_pipeline(question=user_question, context=context)
|
95 |
|
96 |
return answer["answer"]
|
97 |
|