ErikH commited on
Commit
266e137
1 Parent(s): abbaa41

Update pages/bot.py

Browse files
Files changed (1) hide show
  1. pages/bot.py +2 -1
pages/bot.py CHANGED
@@ -113,7 +113,8 @@ def main():
113
 
114
  #Die Basisantwort müsste man jetzt ausformulieren
115
  text2text_generator = pipeline("text2text-generation")
116
- newText=text2text_generator(question=question, context=answer)
 
117
  st.text(newText)
118
 
119
  if __name__ == '__main__':
 
113
 
114
  #Die Basisantwort müsste man jetzt ausformulieren
115
  text2text_generator = pipeline("text2text-generation")
116
+ #newText=text2text_generator(question=question, context=answer)
117
+ newText=text2text_generator("question: "+question+ " context: " + answer)
118
  st.text(newText)
119
 
120
  if __name__ == '__main__':