Update pages/bot.py
Browse files- 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__':
|