Gradio không còn sử dụng components trong các đối tượng như gr.Dataset
Browse files
app.py
CHANGED
|
@@ -161,8 +161,8 @@ with demo:
|
|
| 161 |
)
|
| 162 |
|
| 163 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
| 164 |
-
example_videos.click(fn=set_example_video, inputs=example_videos, outputs=
|
| 165 |
submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|
| 166 |
-
example_images.click(fn=set_example_image, inputs=example_images, outputs=
|
| 167 |
|
| 168 |
demo.launch(enable_queue=True)
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
| 164 |
+
example_videos.click(fn=set_example_video, inputs=example_videos, outputs=input_video) # Updated this line
|
| 165 |
submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|
| 166 |
+
example_images.click(fn=set_example_image, inputs=example_images, outputs=input_image) # Updated this line
|
| 167 |
|
| 168 |
demo.launch(enable_queue=True)
|