Update pages/bot.py
Browse files- pages/bot.py +1 -1
pages/bot.py
CHANGED
|
@@ -114,7 +114,7 @@ def main():
|
|
| 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__':
|
|
|
|
| 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["answer"])
|
| 118 |
st.text(newText)
|
| 119 |
|
| 120 |
if __name__ == '__main__':
|