fffiloni commited on
Commit
35a3bd1
·
1 Parent(s): 2b5f790

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -78,10 +78,11 @@ with gr.Blocks(css=css) as demo:
78
  )
79
  textbox = gr.Textbox(show_label=False, value="a person facing the camera, making a hand gesture, indoor")
80
  seed = gr.Slider(label="Seed", minimum=0, maximum=1000000, value=42)
81
- button = gr.Button("Submit")
82
 
83
- output_image = gr.Image(label="Fixed hands result")
 
84
 
85
- button.click(fn=generate, inputs=[image, textbox, seed], outputs=[output_image])
86
 
87
  demo.queue(max_size=10).launch(debug=True)
 
78
  )
79
  textbox = gr.Textbox(show_label=False, value="a person facing the camera, making a hand gesture, indoor")
80
  seed = gr.Slider(label="Seed", minimum=0, maximum=1000000, value=42)
81
+ submit_btn = gr.Button("Submit")
82
 
83
+ with gr.Column():
84
+ output_image = gr.Image(label="Fixed hands result")
85
 
86
+ submit_btn.click(fn=generate, inputs=[image, textbox, seed], outputs=[output_image])
87
 
88
  demo.queue(max_size=10).launch(debug=True)