Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ def read_video_pyav(container, indices):
|
|
43 |
|
44 |
|
45 |
# Download video from the hub
|
46 |
-
video_path_1 = hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="sample_demo_1.mp4", repo_type="dataset")
|
|
|
47 |
#video_path_2 = hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="karate.mp4", repo_type="dataset")
|
48 |
|
49 |
container = av.open(video_path_1)
|
@@ -66,7 +67,7 @@ conversation = [
|
|
66 |
{
|
67 |
"role": "user",
|
68 |
"content": [
|
69 |
-
{"type": "text", "text": "
|
70 |
{"type": "video"},
|
71 |
],
|
72 |
},
|
|
|
43 |
|
44 |
|
45 |
# Download video from the hub
|
46 |
+
#video_path_1 = hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="sample_demo_1.mp4", repo_type="dataset")
|
47 |
+
video_path="/Users/aa469627/Desktop/videollama/scene/sample1-Scene-049.mp4"
|
48 |
#video_path_2 = hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="karate.mp4", repo_type="dataset")
|
49 |
|
50 |
container = av.open(video_path_1)
|
|
|
67 |
{
|
68 |
"role": "user",
|
69 |
"content": [
|
70 |
+
{"type": "text", "text": "What happens in the video?"},
|
71 |
{"type": "video"},
|
72 |
],
|
73 |
},
|