alexkueck commited on
Commit
dc99fa5
1 Parent(s): 4fa3e86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -404,7 +404,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
404
  print("result image 64...............")
405
  print (image_64)
406
  chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
407
- history = history + [[prompt, result]]
408
  print("history zeichnen......................")
409
  print(chatbot)
410
  return chatbot, history, "Success"
@@ -413,9 +413,9 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
413
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
414
  chatbot[-1][1] = result
415
  if (file == None):
416
- history = history + [[prompt, result]]
417
  else:
418
- history = history + [[prompt+"hier noch die URL zum File", result]]
419
 
420
  print("history nach Zusatz und mit KI Antwort...........")
421
  print(history)
 
404
  print("result image 64...............")
405
  print (image_64)
406
  chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
407
+ history = history + [(prompt, result)]
408
  print("history zeichnen......................")
409
  print(chatbot)
410
  return chatbot, history, "Success"
 
413
  #Antwort als Stream ausgeben... wenn Textantwort gefordert
414
  chatbot[-1][1] = result
415
  if (file == None):
416
+ history = history + [(prompt, result)]
417
  else:
418
+ history = history + [(prompt+"hier noch die URL zum File", result)]
419
 
420
  print("history nach Zusatz und mit KI Antwort...........")
421
  print(history)