alexkueck commited on
Commit
0daec98
1 Parent(s): 0113f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -560,7 +560,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
560
  with gr.Row():
561
  with gr.Column(scale=5):
562
  with gr.Row():
563
- chatbot = gr.Chatbot(elem_id="li-chat",)
564
  with gr.Row():
565
  with gr.Column(scale=12):
566
  user_input = gr.Textbox(
@@ -635,7 +635,17 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
635
  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)
636
  ]
637
  chatbot_bild = gr.Chatbot(elem_id="li-zeichnen")
638
-
 
 
 
 
 
 
 
 
 
 
639
 
640
  gr.Markdown(description)
641
 
@@ -687,17 +697,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
687
 
688
  ######################################
689
  # Für Tab 2: Zeichnen
690
- chat_interface_bild = gr.ChatInterface(fn=generate_bild,
691
- additional_inputs = additional_inputs,
692
- additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False),
693
- title = "Zeichnen mit KI",
694
- theme="soft",
695
- chatbot=chatbot_bild,
696
- retry_btn="🔄 Wiederholen",
697
- undo_btn="↩️ Letztes löschen",
698
- clear_btn="🗑️ Verlauf löschen",
699
- submit_btn = "Abschicken",
700
- description = description2)
701
 
702
  demo.title = "LI-ChatBot"
703
  demo.queue().launch(debug=True)
 
560
  with gr.Row():
561
  with gr.Column(scale=5):
562
  with gr.Row():
563
+ #chatbot = gr.Chatbot(elem_id="li-chat",)
564
  with gr.Row():
565
  with gr.Column(scale=12):
566
  user_input = gr.Textbox(
 
635
  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)
636
  ]
637
  chatbot_bild = gr.Chatbot(elem_id="li-zeichnen")
638
+ chat_interface_bild = gr.ChatInterface(fn=generate_bild,
639
+ additional_inputs = additional_inputs,
640
+ additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False),
641
+ title = "Zeichnen mit KI",
642
+ theme="soft",
643
+ chatbot=chatbot_bild,
644
+ retry_btn="🔄 Wiederholen",
645
+ undo_btn="↩️ Letztes löschen",
646
+ clear_btn="🗑️ Verlauf löschen",
647
+ submit_btn = "Abschicken",
648
+ description = description2)
649
 
650
  gr.Markdown(description)
651
 
 
697
 
698
  ######################################
699
  # Für Tab 2: Zeichnen
700
+
 
 
 
 
 
 
 
 
 
 
701
 
702
  demo.title = "LI-ChatBot"
703
  demo.queue().launch(debug=True)