Update app.py
Browse files
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
|
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 |
|