alexkueck commited on
Commit
6a72465
·
1 Parent(s): 5e3993b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -45,7 +45,7 @@ def erzeuge_komplex(prompt):
45
  with gr.Blocks() as demo:
46
  with gr.Column(variant="panel"):
47
  with gr.Row(variant="compact"):
48
- user_input = gr.Textbox(
49
  label="Deine Beschreibung:",
50
  show_label=False,
51
  max_lines=1,
@@ -53,13 +53,13 @@ with gr.Blocks() as demo:
53
  ).style(
54
  container=False,
55
  )
56
- btn = gr.Button("Bild Erzeugung:").style(full_width=False)
57
 
58
  gallery = gr.Gallery(
59
- label="Erzeugte Bilder", show_label=False, elem_id="gallery"
60
  ).style(columns=[2], rows=[2], object_fit="contain", height="auto")
61
 
62
- btn.click(erzeuge, inputs=[user_input], outputs=[gallery])
63
 
64
  if __name__ == "__main__":
65
  demo.launch()
 
45
  with gr.Blocks() as demo:
46
  with gr.Column(variant="panel"):
47
  with gr.Row(variant="compact"):
48
+ text = gr.Textbox(
49
  label="Deine Beschreibung:",
50
  show_label=False,
51
  max_lines=1,
 
53
  ).style(
54
  container=False,
55
  )
56
+ btn = gr.Button("erzeuge Bild").style(full_width=False, min_width=100)
57
 
58
  gallery = gr.Gallery(
59
+ label="Erzeugtes Bild", show_label=False, elem_id="gallery"
60
  ).style(columns=[2], rows=[2], object_fit="contain", height="auto")
61
 
62
+ btn.click(erzeuge, inputs=[text], outputs=[gallery])
63
 
64
  if __name__ == "__main__":
65
  demo.launch()