Update app.py
Browse files
app.py
CHANGED
|
@@ -387,10 +387,10 @@ def generate_auswahl(prompt, file, chatbot, history, rag_option, model_option, o
|
|
| 387 |
if (prompt.find('zeichnen') != -1):
|
| 388 |
response = generate_bild(prompt)
|
| 389 |
result = response.content
|
| 390 |
-
print("result image...............")
|
| 391 |
-
print (result)
|
| 392 |
#Bild ausgeben
|
| 393 |
image = Image.open(io.BytesIO(result))
|
|
|
|
|
|
|
| 394 |
image_64 = umwandeln_fuer_anzeige(image)
|
| 395 |
chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
|
| 396 |
history = history + [[prompt, result]]
|
|
|
|
| 387 |
if (prompt.find('zeichnen') != -1):
|
| 388 |
response = generate_bild(prompt)
|
| 389 |
result = response.content
|
|
|
|
|
|
|
| 390 |
#Bild ausgeben
|
| 391 |
image = Image.open(io.BytesIO(result))
|
| 392 |
+
print("result image...............")
|
| 393 |
+
print (result)
|
| 394 |
image_64 = umwandeln_fuer_anzeige(image)
|
| 395 |
chatbot[-1][1] = "<img src='data:image/png;base64,{0}'/>".format(b64encode(image_64).decode('utf-8'))
|
| 396 |
history = history + [[prompt, result]]
|