TH9817 commited on
Commit
893fc64
·
verified ·
1 Parent(s): 787d034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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": "Why is this video funny?"},
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
  },