Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def get_response(msg, bot, doc_text_list, doc_embeddings):
|
|
128 |
)
|
129 |
res = result.json()['content']
|
130 |
bot.append([msg, res])
|
131 |
-
|
132 |
return bot[max(0, len(bot) - 3):]
|
133 |
|
134 |
|
@@ -230,7 +230,6 @@ def up_file(fls):
|
|
230 |
|
231 |
doc_text_list = [str(text).strip() for text in doc_text_list if len(str(text).strip()) > 0]
|
232 |
# print(doc_text_list)
|
233 |
-
chat_bot.chat_history = doc_text_state.value
|
234 |
return gr.Textbox.update(value='\n'.join(doc_text_list), visible=True), gr.Button.update(
|
235 |
visible=True), gr.Markdown.update(
|
236 |
value="Processing")
|
|
|
128 |
)
|
129 |
res = result.json()['content']
|
130 |
bot.append([msg, res])
|
131 |
+
chat_bot.chat_history = doc_text_state.value
|
132 |
return bot[max(0, len(bot) - 3):]
|
133 |
|
134 |
|
|
|
230 |
|
231 |
doc_text_list = [str(text).strip() for text in doc_text_list if len(str(text).strip()) > 0]
|
232 |
# print(doc_text_list)
|
|
|
233 |
return gr.Textbox.update(value='\n'.join(doc_text_list), visible=True), gr.Button.update(
|
234 |
visible=True), gr.Markdown.update(
|
235 |
value="Processing")
|