Luigi commited on
Commit
1268dfc
·
1 Parent(s): 6a22aef
Files changed (1) hide show
  1. app.py +2 -2
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
- text_inputs = {k: v.cuda() for k, v in text_inputs.items()}
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
  """