Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def loading_animation(image):
|
|
23 |
def show_results(image):
|
24 |
# 诪驻注讬诇 讗转 讛诪讜讚诇 讜诪讞讝讬专 讗转 讛转讜爪讗讜转
|
25 |
result, confidence = predict(image)
|
26 |
-
return gr.Video.update(visible=
|
27 |
|
28 |
# 讬爪讬专转 诪诪砖拽 Gradio
|
29 |
with gr.Blocks() as demo:
|
|
|
23 |
def show_results(image):
|
24 |
# 诪驻注讬诇 讗转 讛诪讜讚诇 讜诪讞讝讬专 讗转 讛转讜爪讗讜转
|
25 |
result, confidence = predict(image)
|
26 |
+
return gr.Video.update(visible=True), result, confidence
|
27 |
|
28 |
# 讬爪讬专转 诪诪砖拽 Gradio
|
29 |
with gr.Blocks() as demo:
|