hmb HF Staff Claude Opus 4.6 (1M context) commited on
Commit
e0e1fa9
·
1 Parent(s): 2191d21

Add @spaces.GPU decorator to analyze_video for GPU allocation

Browse files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -61,6 +61,7 @@ def normalize(arr):
61
  return (arr - mn) / (mx - mn) * 100
62
 
63
 
 
64
  def analyze_video(video_path):
65
  """Run TRIBE v2 inference and extract zone signals + composite engagement."""
66
  m = get_model()
 
61
  return (arr - mn) / (mx - mn) * 100
62
 
63
 
64
+ @spaces.GPU
65
  def analyze_video(video_path):
66
  """Run TRIBE v2 inference and extract zone signals + composite engagement."""
67
  m = get_model()