Update pages/bot.py
Browse files- pages/bot.py +2 -2
pages/bot.py
CHANGED
@@ -113,9 +113,9 @@ def main():
|
|
113 |
#st.text(answer)
|
114 |
|
115 |
#Die Basisantwort müsste man jetzt ausformulieren
|
116 |
-
text2text_generator = pipeline("text2text-generation", model="google/flan-t5-
|
117 |
#newText=text2text_generator(question=question, context=answer)
|
118 |
-
newText=text2text_generator("
|
119 |
st.text(newText)
|
120 |
|
121 |
if __name__ == '__main__':
|
|
|
113 |
#st.text(answer)
|
114 |
|
115 |
#Die Basisantwort müsste man jetzt ausformulieren
|
116 |
+
text2text_generator = pipeline("text2text-generation", model="google/flan-t5-xxl")
|
117 |
#newText=text2text_generator(question=question, context=answer)
|
118 |
+
newText=text2text_generator("Formuliere einen neuen Satz. Frage: "+question+ " Antwort: " + answer["answer"])
|
119 |
st.text(newText)
|
120 |
|
121 |
if __name__ == '__main__':
|