Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -151,15 +151,6 @@ with gr.Blocks(css="app.css") as video:
|
|
151 |
out3=gr.Textbox(label="ι³ι’ζ
ζθ―ε«2")
|
152 |
text_test_button=gr.Button("εζζζ¬")
|
153 |
text_result=gr.Textbox(interactive=False)
|
154 |
-
gr.Examples(
|
155 |
-
[
|
156 |
-
"videos/video1.mp4",
|
157 |
-
"videos/video2.mp4",
|
158 |
-
"videos/sample.webm",
|
159 |
-
"videos/cnm.mp4",
|
160 |
-
],
|
161 |
-
[input_video],
|
162 |
-
)
|
163 |
|
164 |
|
165 |
clear_btn_dynamic.click(
|
@@ -216,7 +207,7 @@ with gr.Blocks() as video_all:
|
|
216 |
with gr.Row():
|
217 |
with gr.Column(scale=2):
|
218 |
input_video = gr.Video(
|
219 |
-
sources=["webcam"], elem_classes="video1", format='mp4'
|
220 |
)
|
221 |
with gr.Row():
|
222 |
clear_1 = gr.Button(
|
@@ -236,14 +227,15 @@ with gr.Blocks() as video_all:
|
|
236 |
clear_1.click(
|
237 |
fn=clear_video,
|
238 |
inputs=[],
|
239 |
-
outputs=[input_video,output_score,output_statistics,output_audio]
|
|
|
240 |
)
|
241 |
submit_1.click(
|
242 |
fn=video_score,
|
243 |
-
inputs=
|
244 |
outputs=[
|
245 |
-
output_score,
|
246 |
output_statistics,
|
|
|
247 |
output_audio,
|
248 |
],
|
249 |
)
|
|
|
151 |
out3=gr.Textbox(label="ι³ι’ζ
ζθ―ε«2")
|
152 |
text_test_button=gr.Button("εζζζ¬")
|
153 |
text_result=gr.Textbox(interactive=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
|
156 |
clear_btn_dynamic.click(
|
|
|
207 |
with gr.Row():
|
208 |
with gr.Column(scale=2):
|
209 |
input_video = gr.Video(
|
210 |
+
sources=["upload","webcam"], elem_classes="video1", format='mp4'
|
211 |
)
|
212 |
with gr.Row():
|
213 |
clear_1 = gr.Button(
|
|
|
227 |
clear_1.click(
|
228 |
fn=clear_video,
|
229 |
inputs=[],
|
230 |
+
outputs=[input_video,output_score,output_statistics,output_audio],
|
231 |
+
queue=True,
|
232 |
)
|
233 |
submit_1.click(
|
234 |
fn=video_score,
|
235 |
+
inputs=input_video,
|
236 |
outputs=[
|
|
|
237 |
output_statistics,
|
238 |
+
output_score,
|
239 |
output_audio,
|
240 |
],
|
241 |
)
|