alexkueck commited on
Commit
e21077a
1 Parent(s): 3c58667

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,7 +140,7 @@ def add_text(history, prompt, file):
140
  else:
141
  history = history + [((file.name,), None), (prompt, None)]
142
 
143
- return history, prompt, "", gr.File(value=None) #gr.Textbox(value="", interactive=False)
144
 
145
  def add_file(history, file, prompt):
146
  if (prompt == ""):
@@ -438,7 +438,7 @@ 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
- history[-1][1] = "" #file.name #image
442
  print("history zeichnen......................")
443
  print(history)
444
  return history, "Stop: Success"
 
140
  else:
141
  history = history + [((file.name,), None), (prompt, None)]
142
 
143
+ return history, prompt, "", gr.File( label=None, interactive=False, height=20, min_width=20, visible=False, scale=2) #gr.Textbox(value="", interactive=False)
144
 
145
  def add_file(history, file, prompt):
146
  if (prompt == ""):
 
438
  if (prompt.find('zeichnen') != -1):
439
  #Bild ausgeben
440
  image = Image.open(io.BytesIO(result))
441
+ history[-1][1] = "Hallo" #file.name #image
442
  print("history zeichnen......................")
443
  print(history)
444
  return history, "Stop: Success"