alexkueck commited on
Commit
27f22f9
·
1 Parent(s): 232181c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -438,8 +438,9 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
438
  if (prompt.find('zeichnen') != -1):
439
  #Bild ausgeben
440
  image = Image.open(io.BytesIO(result))
441
- image_png = image.getValue()
442
- history[-1][1] = image_png #file.name,
 
443
  print("history zeichnen......................")
444
  print(history)
445
  if shared_state.interrupted:
 
438
  if (prompt.find('zeichnen') != -1):
439
  #Bild ausgeben
440
  image = Image.open(io.BytesIO(result))
441
+ print("image:.................")
442
+ print(image)
443
+ history[-1][1] = image.name, #file.name,
444
  print("history zeichnen......................")
445
  print(history)
446
  if shared_state.interrupted: