Update pages/bot.py
Browse files- pages/bot.py +2 -1
pages/bot.py
CHANGED
@@ -89,6 +89,7 @@ def main():
|
|
89 |
st.text(retrieved_docs[0].page_content)
|
90 |
context=retrieved_docs[0].page_content
|
91 |
question=user_question
|
|
|
92 |
|
93 |
##IDEE Text Generation
|
94 |
generator = pipeline('text-generation', model = 'gpt2')
|
@@ -121,7 +122,7 @@ def main():
|
|
121 |
| StrOutputParser()
|
122 |
)
|
123 |
|
124 |
-
ausgabetext = chain.invoke(
|
125 |
st.text(ausgabetext)
|
126 |
|
127 |
|
|
|
89 |
st.text(retrieved_docs[0].page_content)
|
90 |
context=retrieved_docs[0].page_content
|
91 |
question=user_question
|
92 |
+
st.text(user_question)
|
93 |
|
94 |
##IDEE Text Generation
|
95 |
generator = pipeline('text-generation', model = 'gpt2')
|
|
|
122 |
| StrOutputParser()
|
123 |
)
|
124 |
|
125 |
+
ausgabetext = chain.invoke(user_question)
|
126 |
st.text(ausgabetext)
|
127 |
|
128 |
|