Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,11 +81,6 @@ def handle_userinput(user_question):
|
|
81 |
|
82 |
st.session_state.retrieved_text = response['source_documents']
|
83 |
|
84 |
-
for n in enumerate(st.session_state.retrieved_text):
|
85 |
-
st.write(response['source_documents'][n])
|
86 |
-
|
87 |
-
print(response['source_documents'][0])
|
88 |
-
|
89 |
for i, message in enumerate(st.session_state.chat_history):
|
90 |
if i % 2 == 0:
|
91 |
st.write(user_template.replace(
|
@@ -96,7 +91,10 @@ def handle_userinput(user_question):
|
|
96 |
#st.write(bot_template.replace(
|
97 |
# "{{MSG}}", str(text[0])), unsafe_allow_html=True)
|
98 |
|
|
|
|
|
99 |
|
|
|
100 |
|
101 |
# main code
|
102 |
load_dotenv()
|
|
|
81 |
|
82 |
st.session_state.retrieved_text = response['source_documents']
|
83 |
|
|
|
|
|
|
|
|
|
|
|
84 |
for i, message in enumerate(st.session_state.chat_history):
|
85 |
if i % 2 == 0:
|
86 |
st.write(user_template.replace(
|
|
|
91 |
#st.write(bot_template.replace(
|
92 |
# "{{MSG}}", str(text[0])), unsafe_allow_html=True)
|
93 |
|
94 |
+
for n in enumerate(st.session_state.retrieved_text):
|
95 |
+
st.write(response['source_documents'][n])
|
96 |
|
97 |
+
print(response['source_documents'][0])
|
98 |
|
99 |
# main code
|
100 |
load_dotenv()
|