nam_nguyenhoai_AI
commited on
Commit
•
987b643
1
Parent(s):
01ed220
Update application file
Browse files
app.py
CHANGED
@@ -15,19 +15,22 @@ css = """
|
|
15 |
"""
|
16 |
|
17 |
|
18 |
-
title = "#
|
19 |
-
description = """
|
|
|
|
|
|
|
20 |
|
21 |
with gr.Blocks(css=css) as demo:
|
22 |
gr.Markdown(title)
|
23 |
gr.Markdown(description)
|
24 |
-
gr.Markdown("### Video
|
25 |
|
26 |
with gr.Row():
|
27 |
input_video = gr.Video(label="Input Video")
|
28 |
-
model_type = gr.Dropdown(["
|
29 |
submit = gr.Button("Submit")
|
30 |
-
processed_video = gr.Video(label="
|
31 |
|
32 |
def on_submit(uploaded_video,model_type):
|
33 |
|
|
|
15 |
"""
|
16 |
|
17 |
|
18 |
+
title = "# Video Summarization Demo"
|
19 |
+
description = """Video Summarization using Timesformer.
|
20 |
+
|
21 |
+
Author: Nguyen Hoai Nam.
|
22 |
+
"""
|
23 |
|
24 |
with gr.Blocks(css=css) as demo:
|
25 |
gr.Markdown(title)
|
26 |
gr.Markdown(description)
|
27 |
+
gr.Markdown("### Video Summarization demo")
|
28 |
|
29 |
with gr.Row():
|
30 |
input_video = gr.Video(label="Input Video")
|
31 |
+
model_type = gr.Dropdown(["K-means", "Sum of Squared Difference 01", "Sum of Squared Difference 02"], type="value", label='Model Type')
|
32 |
submit = gr.Button("Submit")
|
33 |
+
processed_video = gr.Video(label="Summarized Video")
|
34 |
|
35 |
def on_submit(uploaded_video,model_type):
|
36 |
|