Spaces:
Runtime error
Runtime error
brjathu
commited on
Commit
•
ab405c6
1
Parent(s):
a106caa
test6
Browse files
app.py
CHANGED
@@ -155,6 +155,7 @@ with gr.Blocks(title="4DHumans", css=".gradio-container") as demo:
|
|
155 |
with gr.Row():
|
156 |
threshold = gr.Slider(0, 1.0, value=0.6, label='Detection Threshold')
|
157 |
send_btn = gr.Button("Infer")
|
|
|
158 |
|
159 |
|
160 |
# gr.Examples([
|
@@ -166,23 +167,22 @@ with gr.Blocks(title="4DHumans", css=".gradio-container") as demo:
|
|
166 |
# ],
|
167 |
# inputs=[input_image, threshold])
|
168 |
|
169 |
-
with gr.Row():
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
#demo.queue()
|
187 |
demo.launch(debug=True)
|
188 |
|
|
|
155 |
with gr.Row():
|
156 |
threshold = gr.Slider(0, 1.0, value=0.6, label='Detection Threshold')
|
157 |
send_btn = gr.Button("Infer")
|
158 |
+
send_btn.click(fn=infer, inputs=[input_image, threshold], outputs=[output_image])
|
159 |
|
160 |
|
161 |
# gr.Examples([
|
|
|
167 |
# ],
|
168 |
# inputs=[input_image, threshold])
|
169 |
|
170 |
+
# with gr.Row():
|
171 |
+
# gr.Examples([
|
172 |
+
# ['assets/test1.png'],
|
173 |
+
# ['assets/test2.jpg'],
|
174 |
+
# ['assets/test3.jpg'],
|
175 |
+
# ['assets/test4.jpg'],
|
176 |
+
# ['assets/test5.jpg'],
|
177 |
+
# ],
|
178 |
+
|
179 |
+
# inputs=[input_image, 0.6],
|
180 |
+
# outputs = [
|
181 |
+
# output_image
|
182 |
+
# ],
|
183 |
+
# )
|
184 |
+
|
185 |
+
|
|
|
186 |
#demo.queue()
|
187 |
demo.launch(debug=True)
|
188 |
|