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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -383,6 +383,8 @@ additional_inputs = [
383
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=True)
384
  ]
385
 
 
 
386
  chatbot_stream = gr.Chatbot()
387
 
388
  chat_interface_stream = gr.ChatInterface(fn=invoke,
@@ -394,9 +396,11 @@ chat_interface_stream = gr.ChatInterface(fn=invoke,
394
  undo_btn="↩️ Letztes löschen",
395
  clear_btn="🗑️ Verlauf löschen",
396
  submit_btn = "Abschicken",
397
- description = description)
 
 
 
398
 
399
- reference_image = gr.Image(label="Reference Image")
400
 
401
  with gr.Blocks() as demo:
402
  gr.HTML(
@@ -416,8 +420,8 @@ with gr.Blocks() as demo:
416
  with gr.Row():
417
  chatbot_stream.like(vote, None, None)
418
  chat_interface_stream.queue().launch()
419
- with gr.Row():
420
- reference_image.queue().launch()
421
 
422
 
423
  # when `first_frame` is updated
 
383
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens", visible=True)
384
  ]
385
 
386
+ reference_image = gr.Image(label="Reference Image")
387
+
388
  chatbot_stream = gr.Chatbot()
389
 
390
  chat_interface_stream = gr.ChatInterface(fn=invoke,
 
396
  undo_btn="↩️ Letztes löschen",
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
 
 
404
 
405
  with gr.Blocks() as demo:
406
  gr.HTML(
 
420
  with gr.Row():
421
  chatbot_stream.like(vote, None, None)
422
  chat_interface_stream.queue().launch()
423
+ #with gr.Row():
424
+ #reference_image.queue().launch()
425
 
426
 
427
  # when `first_frame` is updated