laurenok24
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -325,13 +325,14 @@ with gr.Blocks() as demo_precomputed:
|
|
325 |
2. Hit the **Abstract Symbols** button.
|
326 |
"""
|
327 |
)
|
|
|
|
|
328 |
|
329 |
with gr.Row(variant='panel'):
|
330 |
with gr.Column():
|
331 |
video = gr.Video(label="Video", format="mp4", include_audio=False, sources=["upload"], interactive=False)
|
332 |
-
abstract_symbols_btn = gr.Button("Abstract Symbols", variant='
|
333 |
symbol_output = gr.HTML(label="Output")
|
334 |
-
examples = gr.Examples(examples = [['01_10.mp4'], ['01_11.mp4'], ['01_16.mp4'], ['01_33.mp4'], ['01_76.mp4'], ['01_140.mp4']], inputs=[video])
|
335 |
|
336 |
gr.Markdown(
|
337 |
"""
|
@@ -350,7 +351,7 @@ with gr.Blocks() as demo_precomputed:
|
|
350 |
)
|
351 |
|
352 |
# with gr.Row():
|
353 |
-
get_score_btn = gr.Button("
|
354 |
score_report = gr.HTML(label="Report")
|
355 |
# get_score_report_btn = gr.Button("Get Score Report")
|
356 |
|
@@ -361,8 +362,6 @@ with gr.Blocks() as demo_precomputed:
|
|
361 |
symbol_output.change(fn=enable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
362 |
get_score_btn.click(fn=get_score_report, inputs=video, outputs=score_report)
|
363 |
|
364 |
-
|
365 |
-
|
366 |
|
367 |
############################################################################################################################################
|
368 |
|
|
|
325 |
2. Hit the **Abstract Symbols** button.
|
326 |
"""
|
327 |
)
|
328 |
+
|
329 |
+
examples = gr.Examples(examples = [['01_10.mp4'], ['01_11.mp4'], ['01_16.mp4'], ['01_33.mp4'], ['01_76.mp4'], ['01_140.mp4']], inputs=[video])
|
330 |
|
331 |
with gr.Row(variant='panel'):
|
332 |
with gr.Column():
|
333 |
video = gr.Video(label="Video", format="mp4", include_audio=False, sources=["upload"], interactive=False)
|
334 |
+
abstract_symbols_btn = gr.Button("Abstract Symbols", variant='secondary')
|
335 |
symbol_output = gr.HTML(label="Output")
|
|
|
336 |
|
337 |
gr.Markdown(
|
338 |
"""
|
|
|
351 |
)
|
352 |
|
353 |
# with gr.Row():
|
354 |
+
get_score_btn = gr.Button("Generate Score Report", interactive=False)
|
355 |
score_report = gr.HTML(label="Report")
|
356 |
# get_score_report_btn = gr.Button("Get Score Report")
|
357 |
|
|
|
362 |
symbol_output.change(fn=enable_get_score_btn, inputs=get_score_btn, outputs=get_score_btn)
|
363 |
get_score_btn.click(fn=get_score_report, inputs=video, outputs=score_report)
|
364 |
|
|
|
|
|
365 |
|
366 |
############################################################################################################################################
|
367 |
|