alexkueck commited on
Commit
055fc38
1 Parent(s): 7d84973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -404,7 +404,7 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
404
  #Bild ausgeben
405
  image = Image.open(io.BytesIO(result))
406
  image_64 = umwandeln_fuer_anzeige(image)
407
- chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
408
  history = history + [(prompt, result)]
409
  return chatbot, history, gr.File(visible=False), "Success"
410
  else:
 
404
  #Bild ausgeben
405
  image = Image.open(io.BytesIO(result))
406
  image_64 = umwandeln_fuer_anzeige(image)
407
+ chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(base64.b64encode(image_64).decode('utf-8'))
408
  history = history + [(prompt, result)]
409
  return chatbot, history, gr.File(visible=False), "Success"
410
  else: