Update app.py
Browse files
app.py
CHANGED
@@ -297,14 +297,14 @@ def generate_auswahl(prompt_in, file, file_history, chatbot, history, anzahl_doc
|
|
297 |
#"documents": [{"link": link, "passage": passage} for link, passage in zip(links, passages)]
|
298 |
#}
|
299 |
|
300 |
-
|
301 |
|
302 |
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
|
309 |
|
310 |
|
|
|
297 |
#"documents": [{"link": link, "passage": passage} for link, passage in zip(links, passages)]
|
298 |
#}
|
299 |
|
300 |
+
response = result
|
301 |
|
302 |
|
303 |
+
#die history erweitern - abhängig davon, ob gerade ein file hochgeladen wurde oder nicht
|
304 |
+
if (file != None):
|
305 |
+
history = history + [[(file,), None],[prompt, response]]
|
306 |
+
else:
|
307 |
+
history = history + [[prompt, response]]
|
308 |
|
309 |
|
310 |
|