alexkueck commited on
Commit
3caaad5
1 Parent(s): 20902f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -566,7 +566,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
566
  history = gr.State([])
567
  #damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
568
  user_question = gr.State("")
569
-
 
570
  ################################################
571
  # Tab zum Chatbot mit Text oder Bildeingabe
572
  ################################################
@@ -641,9 +642,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
641
  # Tab zum Zeichnen mit Stable Diffusion
642
  ################################################
643
  with gr.Tab("KI zum Zeichnen"):
644
-
645
- #damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
646
- user_question2 = gr.State("")
647
  with gr.Row():
648
  gr.HTML("LI Zeichnen mit KI")
649
  status_display2 = gr.Markdown("Success", elem_id="status_display")
@@ -663,7 +661,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
663
  with gr.Column(min_width=70, scale=1):
664
  cancelBtn2 = gr.Button("Stop")
665
  with gr.Row():
666
- emptyBtn2 = gr.ClearButton([user_input, chatbot, history, file_display, image_display], value="🧹 Neue Session", scale=10)
667
  #additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False)
668
 
669
 
 
566
  history = gr.State([])
567
  #damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
568
  user_question = gr.State("")
569
+ #damit der Prompt auch nach dem upload in die History noch für predicts_args verfügbar ist
570
+ user_question2 = gr.State("")
571
  ################################################
572
  # Tab zum Chatbot mit Text oder Bildeingabe
573
  ################################################
 
642
  # Tab zum Zeichnen mit Stable Diffusion
643
  ################################################
644
  with gr.Tab("KI zum Zeichnen"):
 
 
 
645
  with gr.Row():
646
  gr.HTML("LI Zeichnen mit KI")
647
  status_display2 = gr.Markdown("Success", elem_id="status_display")
 
661
  with gr.Column(min_width=70, scale=1):
662
  cancelBtn2 = gr.Button("Stop")
663
  with gr.Row():
664
+ emptyBtn2 = gr.ClearButton([user_input, chatbot_bild], value="🧹 Neue Session", scale=10)
665
  #additional_inputs_accordion = gr.Accordion(label="Weitere Eingaben...", open=False)
666
 
667