Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,12 +35,12 @@ with gr.Blocks() as demo:
|
|
35 |
animation = gr.Video("https://cdn-uploads.huggingface.co/production/uploads/66d6f1b3b50e35e1709bfdf7/x7Ud8PO9QPfmrTvBVcCKE.mp4", visible=False)
|
36 |
|
37 |
# 转讜爪讗讜转
|
38 |
-
output_label = gr.Textbox(label="Classification Result", interactive=False, visible=
|
39 |
-
output_confidence = gr.Textbox(label="Confidence", interactive=False, visible=
|
40 |
|
41 |
# 讗讬专讜注讬诐
|
42 |
image_input.change(loading_animation, inputs=image_input, outputs=[animation, output_label, output_confidence])
|
43 |
-
image_input.
|
44 |
|
45 |
# 讛砖拽转 讛诪诪砖拽
|
46 |
demo.launch()
|
|
|
35 |
animation = gr.Video("https://cdn-uploads.huggingface.co/production/uploads/66d6f1b3b50e35e1709bfdf7/x7Ud8PO9QPfmrTvBVcCKE.mp4", visible=False)
|
36 |
|
37 |
# 转讜爪讗讜转
|
38 |
+
output_label = gr.Textbox(label="Classification Result", interactive=False, visible=True)
|
39 |
+
output_confidence = gr.Textbox(label="Confidence", interactive=False, visible=True)
|
40 |
|
41 |
# 讗讬专讜注讬诐
|
42 |
image_input.change(loading_animation, inputs=image_input, outputs=[animation, output_label, output_confidence])
|
43 |
+
image_input.change(show_results, inputs=image_input, outputs=[animation, output_label, output_confidence])
|
44 |
|
45 |
# 讛砖拽转 讛诪诪砖拽
|
46 |
demo.launch()
|