Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,29 +81,18 @@ def app():
|
|
81 |
with gr.Column():
|
82 |
output_numpy = gr.Image(type="numpy",label="Output")
|
83 |
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
inputs=[
|
97 |
-
img_path,
|
98 |
-
model_path,
|
99 |
-
image_size,
|
100 |
-
conf_threshold,
|
101 |
-
iou_threshold,
|
102 |
-
],
|
103 |
-
outputs=[output_numpy],
|
104 |
-
cache_examples=True,
|
105 |
-
)
|
106 |
-
|
107 |
|
108 |
gradio_app = gr.Blocks()
|
109 |
with gradio_app:
|
@@ -124,4 +113,4 @@ with gradio_app:
|
|
124 |
with gr.Column():
|
125 |
app()
|
126 |
|
127 |
-
gradio_app.launch(debug=True)
|
|
|
81 |
with gr.Column():
|
82 |
output_numpy = gr.Image(type="numpy",label="Output")
|
83 |
|
84 |
+
yolov9_infer.click(
|
85 |
+
fn=yolov9_inference,
|
86 |
+
inputs=[
|
87 |
+
img_path,
|
88 |
+
model_path,
|
89 |
+
image_size,
|
90 |
+
conf_threshold,
|
91 |
+
iou_threshold,
|
92 |
+
],
|
93 |
+
outputs=[output_numpy],
|
94 |
+
cache_examples=True,
|
95 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
gradio_app = gr.Blocks()
|
98 |
with gradio_app:
|
|
|
113 |
with gr.Column():
|
114 |
app()
|
115 |
|
116 |
+
gradio_app.launch(debug=True)
|