Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ def detect(img, lang=['en']):
|
|
21 |
return im_out
|
22 |
|
23 |
with gr.Blocks() as robot:
|
24 |
-
im=gr.
|
25 |
go_btn=gr.Button()
|
26 |
-
out_im=gr.
|
27 |
out_txt=gr.Textbox(lines=8)
|
28 |
go_btn.click(detect,im,out_im)
|
29 |
robot.queue(concurrency_count=10).launch()
|
|
|
21 |
return im_out
|
22 |
|
23 |
with gr.Blocks() as robot:
|
24 |
+
im=gr.Image(type="filepath")
|
25 |
go_btn=gr.Button()
|
26 |
+
out_im=gr.Image()
|
27 |
out_txt=gr.Textbox(lines=8)
|
28 |
go_btn.click(detect,im,out_im)
|
29 |
robot.queue(concurrency_count=10).launch()
|