Update pages/bot.py
Browse files- pages/bot.py +5 -2
pages/bot.py
CHANGED
@@ -100,10 +100,13 @@ def main():
|
|
100 |
user_question
|
101 |
)
|
102 |
if user_question:
|
103 |
-
|
104 |
-
st.text(context)
|
105 |
question=user_question
|
106 |
st.text(user_question)
|
|
|
|
|
|
|
|
|
107 |
|
108 |
##IDEE Text Generation
|
109 |
#generator = pipeline('text-generation', model = 'gpt2')
|
|
|
100 |
user_question
|
101 |
)
|
102 |
if user_question:
|
103 |
+
|
|
|
104 |
question=user_question
|
105 |
st.text(user_question)
|
106 |
+
context=""+retrieved_docs[0].page_content+retrieved_docs[1].page_content+retrieved_docs[3].page_content
|
107 |
+
context.replace("\n", " ")
|
108 |
+
st.text("Das ist der Kontext:")
|
109 |
+
st.text(context)
|
110 |
|
111 |
##IDEE Text Generation
|
112 |
#generator = pipeline('text-generation', model = 'gpt2')
|