Spaces:
Running
on
A100
Running
on
A100
initial test
Browse files- app.py +6 -5
- video_spec.json +2 -21
app.py
CHANGED
@@ -87,9 +87,9 @@ def create_ui(examples_path: str):
|
|
87 |
|
88 |
with gr.Row():
|
89 |
gr.Markdown("## Example Results")
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
with gr.Column():
|
94 |
gr.Markdown(f"## {example['title']}")
|
95 |
gr.Video(
|
@@ -100,8 +100,9 @@ def create_ui(examples_path: str):
|
|
100 |
|
101 |
with gr.Column():
|
102 |
with gr.Accordion("Model chain of thought details", open=False):
|
103 |
-
gr.Markdown(example[
|
104 |
-
gr.Markdown(example[
|
|
|
105 |
gr.Video(
|
106 |
value=example["highlights"]["url"],
|
107 |
label=f"Highlights ({format_duration(example['highlights']['duration_seconds'])})",
|
|
|
87 |
|
88 |
with gr.Row():
|
89 |
gr.Markdown("## Example Results")
|
90 |
+
|
91 |
+
with gr.Row():
|
92 |
+
for example in examples_data["examples"]:
|
93 |
with gr.Column():
|
94 |
gr.Markdown(f"## {example['title']}")
|
95 |
gr.Video(
|
|
|
100 |
|
101 |
with gr.Column():
|
102 |
with gr.Accordion("Model chain of thought details", open=False):
|
103 |
+
gr.Markdown(f"#Summary: {example['analysis']['video_description']}")
|
104 |
+
gr.Markdown(f"#Highlights to search for: {example['analysis']['highlight_types']}")
|
105 |
+
|
106 |
gr.Video(
|
107 |
value=example["highlights"]["url"],
|
108 |
label=f"Highlights ({format_duration(example['highlights']['duration_seconds'])})",
|
video_spec.json
CHANGED
@@ -15,8 +15,8 @@
|
|
15 |
|
16 |
},
|
17 |
"analysis": {
|
18 |
-
"video_description": "
|
19 |
-
"highlight_types": "
|
20 |
}
|
21 |
},
|
22 |
{
|
@@ -35,25 +35,6 @@
|
|
35 |
"video_description": "Freeride mountain bike competition",
|
36 |
"highlight_types": "Stunts: The video features riders performing impressive stunts, such as jumps, tricks, and flips, which are statistically rare and particularly dramatic. These segments should be highlighted to showcase the skill and athleticism of the riders.\nInteraction with the Crowd: The video shows riders interacting with the crowd, which is a unique aspect of the Red Bull Rampage event. This segment should be included to capture the excitement and energy of the crowd and the riders' interactions with them.\nBeing Interviewed: The video features riders being interviewed, which is another unique aspect of the Red Bull Rampage event. This segment should be included to showcase the riders' personalities, motivations, and experiences at the event.\nThe Red Bull Rampage Logo: The Red Bull Rampage logo is prominently displayed throughout the video, indicating the event's branding. This segment should be included to showcase the event's identity and branding."
|
37 |
}
|
38 |
-
},
|
39 |
-
{
|
40 |
-
"id": "Example 3",
|
41 |
-
"title": "Football Match Highlights",
|
42 |
-
"description": "Champions League semifinal match",
|
43 |
-
"original": {
|
44 |
-
"url": "https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/barcamadrid.mp4",
|
45 |
-
"duration_seconds": 6114
|
46 |
-
},
|
47 |
-
"highlights": {
|
48 |
-
"url": "https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/barcamadridhighlights.mp4",
|
49 |
-
"duration_seconds": 130,
|
50 |
-
"thumbnail_url": "https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/thumbnail_barcamadrid.png"
|
51 |
-
|
52 |
-
},
|
53 |
-
"analysis": {
|
54 |
-
"video_description": "This is a high-stakes football match between Barcelona and Madrid.",
|
55 |
-
"highlight_types": "- Goals scored\n- Player interactions\n- Vibe at the stadium"
|
56 |
-
}
|
57 |
}
|
58 |
]
|
59 |
}
|
|
|
15 |
|
16 |
},
|
17 |
"analysis": {
|
18 |
+
"video_description": "The video is a live broadcast of a soccer match between Real Madrid and FC Barcelona. It captures the excitement and intensity of the game, with players from both teams competing for the ball and scoring goals.",
|
19 |
+
"highlight_types": "1. A spectacular bicycle kick by a Real Madrid player\n2. A dramatic save by a FC Barcelona goalkeeper\n3. A stunning dribble by a Real Madrid player\n4. A goal celebration by a Real Madrid player\nA goal celebration by a FC Barcelona player, such as Messi or Alves, after scoring a goal.\n6. A dramatic save by a Real Madrid player\n7. A goal celebration by a Real Madrid player, such as Ronaldo, after scoring a goal.\n8. A goal celebration by a FC Barcelona player, such as Messi or Alves, after scoring a goal"
|
20 |
}
|
21 |
},
|
22 |
{
|
|
|
35 |
"video_description": "Freeride mountain bike competition",
|
36 |
"highlight_types": "Stunts: The video features riders performing impressive stunts, such as jumps, tricks, and flips, which are statistically rare and particularly dramatic. These segments should be highlighted to showcase the skill and athleticism of the riders.\nInteraction with the Crowd: The video shows riders interacting with the crowd, which is a unique aspect of the Red Bull Rampage event. This segment should be included to capture the excitement and energy of the crowd and the riders' interactions with them.\nBeing Interviewed: The video features riders being interviewed, which is another unique aspect of the Red Bull Rampage event. This segment should be included to showcase the riders' personalities, motivations, and experiences at the event.\nThe Red Bull Rampage Logo: The Red Bull Rampage logo is prominently displayed throughout the video, indicating the event's branding. This segment should be included to showcase the event's identity and branding."
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
]
|
40 |
}
|