alexkueck commited on
Commit
20902f3
1 Parent(s): de345fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -446,7 +446,7 @@ def generate_bild(prompt, chatbot, temperature=0.5, max_new_tokens=4048,top_p=0
446
  #Bild ausgeben
447
  image = Image.open(io.BytesIO(result))
448
  image_64 = umwandeln_fuer_anzeige(image)
449
- chatbot.append[(prompt, "<img src='data:image/png;base64,{0}'/>".format(base64.b64encode(image_64).decode('utf-8')))]
450
  return chatbot, "Success"
451
 
452
 
 
446
  #Bild ausgeben
447
  image = Image.open(io.BytesIO(result))
448
  image_64 = umwandeln_fuer_anzeige(image)
449
+ chatbot= chatbot + [(prompt, "<img src='data:image/png;base64,{0}'/>".format(base64.b64encode(image_64).decode('utf-8')))]
450
  return chatbot, "Success"
451
 
452