merve HF staff commited on
Commit
c85b146
1 Parent(s): 7aef3af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -42,10 +42,13 @@ def infer(img):
42
 
43
 
44
  with gr.Blocks() as demo:
45
- im = gr.ImageEditor(
46
- type="pil"
47
- )
48
- submit_btn = gr.Button()
 
 
 
49
  submit_btn.click(infer, inputs=im, outputs=gr.AnnotatedImage())
50
 
51
  demo.launch(debug=True)
 
42
 
43
 
44
  with gr.Blocks() as demo:
45
+ with gr.Row():
46
+ with gr.Column():
47
+ im = gr.ImageEditor(
48
+ type="pil"
49
+ )
50
+ submit_btn = gr.Button()
51
+ output = gr.AnnotatedImage()
52
  submit_btn.click(infer, inputs=im, outputs=gr.AnnotatedImage())
53
 
54
  demo.launch(debug=True)