Spaces:
Running
on
Zero
Running
on
Zero
bugfix
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ MODEL_NAME = "openai/clip-vit-base-patch32"
|
|
14 |
fall_prompt = "A person falling on the ground."
|
15 |
nofall_prompt = "A person standing or walking."
|
16 |
|
17 |
-
if torch.cuda.is_available():
|
18 |
-
|
19 |
|
20 |
def extract_frames(video_path, target_size=(224, 224)):
|
21 |
"""
|
|
|
14 |
fall_prompt = "A person falling on the ground."
|
15 |
nofall_prompt = "A person standing or walking."
|
16 |
|
17 |
+
# if torch.cuda.is_available():
|
18 |
+
# text_inputs = {k: v.cuda() for k, v in text_inputs.items()}
|
19 |
|
20 |
def extract_frames(video_path, target_size=(224, 224)):
|
21 |
"""
|