ErikH commited on
Commit
92f0aad
·
1 Parent(s): 2f34027

Update pages/bot.py

Browse files
Files changed (1) hide show
  1. 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=question, context=context)
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