Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,9 +42,9 @@ theme = "Nymbo/Alyx_Theme"
|
|
| 42 |
with gr.Blocks() as demo:
|
| 43 |
with gr.Row():
|
| 44 |
with gr.Column():
|
| 45 |
-
|
| 46 |
with gr.Column():
|
| 47 |
-
|
| 48 |
|
| 49 |
#with gr.Row():
|
| 50 |
gr.Examples(
|
|
@@ -66,13 +66,13 @@ with gr.Blocks() as demo:
|
|
| 66 |
],
|
| 67 |
fn=process,
|
| 68 |
inputs=[
|
| 69 |
-
|
| 70 |
#model_id,
|
| 71 |
#image_size,
|
| 72 |
#conf_threshold,
|
| 73 |
#iou_threshold,
|
| 74 |
],
|
| 75 |
-
outputs=[
|
| 76 |
cache_examples="lazy",
|
| 77 |
)
|
| 78 |
|
|
|
|
| 42 |
with gr.Blocks() as demo:
|
| 43 |
with gr.Row():
|
| 44 |
with gr.Column():
|
| 45 |
+
input_image = gr.components.Image(type='filepath')
|
| 46 |
with gr.Column():
|
| 47 |
+
output_image = gr.components.Image(type='filepath')
|
| 48 |
|
| 49 |
#with gr.Row():
|
| 50 |
gr.Examples(
|
|
|
|
| 66 |
],
|
| 67 |
fn=process,
|
| 68 |
inputs=[
|
| 69 |
+
input_image,
|
| 70 |
#model_id,
|
| 71 |
#image_size,
|
| 72 |
#conf_threshold,
|
| 73 |
#iou_threshold,
|
| 74 |
],
|
| 75 |
+
outputs=[output_image],
|
| 76 |
cache_examples="lazy",
|
| 77 |
)
|
| 78 |
|