Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,10 +42,13 @@ def infer(img):
|
|
| 42 |
|
| 43 |
|
| 44 |
with gr.Blocks() as demo:
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
| 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)
|