ashu-1069 commited on
Commit
09dd3c4
·
verified ·
1 Parent(s): 8ef22b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -21,16 +21,15 @@ ANNOTATION_CATEGORIES = {
21
  "Fielder's Action": ["Catch taken", "Catch dropped", "Misfield", "Run-out attempt", "Fielder fields"]
22
  }
23
 
24
- # HuggingFace repo info - replace with your actual repo
25
- HF_REPO_ID = "username/cricket-videos" # Replace with your actual repo
26
- HF_REPO_TYPE = "dataset" # or "model" depending on how you've stored the videos
27
 
28
  class VideoAnnotator:
29
  def __init__(self):
30
  self.video_files = []
31
  self.current_video_idx = 0
32
  self.annotations = {}
33
- self.hf_token = os.environ.get("HF_TOKEN") # Get token from environment variable
34
  self.dataset = None
35
 
36
  def load_videos_from_hf(self):
 
21
  "Fielder's Action": ["Catch taken", "Catch dropped", "Misfield", "Run-out attempt", "Fielder fields"]
22
  }
23
 
24
+ HF_REPO_ID = "srrthk/CricBench"
25
+ HF_REPO_TYPE = "dataset"
 
26
 
27
  class VideoAnnotator:
28
  def __init__(self):
29
  self.video_files = []
30
  self.current_video_idx = 0
31
  self.annotations = {}
32
+ self.hf_token = os.environ.get("HF_TOKEN")
33
  self.dataset = None
34
 
35
  def load_videos_from_hf(self):