alexkueck commited on
Commit
ebfbbf9
1 Parent(s): 3307386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- 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
 
 
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