Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 25 |
-
|
| 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")
|
| 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):
|