alexkueck commited on
Commit
6f46140
1 Parent(s): 96e5ea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -397,7 +397,6 @@ chat_interface_stream = gr.ChatInterface(fn=invoke,
397
  clear_btn="🗑️ Verlauf löschen",
398
  submit_btn = "Abschicken",
399
  description = description,
400
- inputs=[gr.inputs.Textbox(lines=2, placeholder="Geben Sie Ihren Prompt hier ein..."), reference_image],
401
  )
402
 
403
 
@@ -417,6 +416,17 @@ with gr.Blocks() as demo:
417
  </div>
418
  """)
419
  with gr.Tab("Chatbot"):
 
 
 
 
 
 
 
 
 
 
 
420
  with gr.Row():
421
  chatbot_stream.like(vote, None, None)
422
  chat_interface_stream.queue().launch()
@@ -433,4 +443,4 @@ with gr.Blocks() as demo:
433
  )
434
 
435
 
436
- #demo.queue().launch()
 
397
  clear_btn="🗑️ Verlauf löschen",
398
  submit_btn = "Abschicken",
399
  description = description,
 
400
  )
401
 
402
 
 
416
  </div>
417
  """)
418
  with gr.Tab("Chatbot"):
419
+ iface = gr.Interface(
420
+ fn=handle_input,
421
+ inputs=[reference_image, chat_interface_stream],
422
+ outputs=chat_interface_stream,
423
+ title="Chatbot mit Bildeingabe",
424
+ description="Laden Sie ein Bild hoch oder interagieren Sie über den Chat."
425
+ )
426
+
427
+ iface.launch()
428
+
429
+ """
430
  with gr.Row():
431
  chatbot_stream.like(vote, None, None)
432
  chat_interface_stream.queue().launch()
 
443
  )
444
 
445
 
446
+ #demo.queue().launch() """