prithivMLmods commited on
Commit
4b1c88a
·
verified ·
1 Parent(s): a3f9b81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -163,6 +163,7 @@ def segment_image(input_image, text_prompt, threshold=0.5):
163
 
164
  return (image_pil, annotations)
165
 
 
166
  def process_video_text(video_path, text_prompt, max_frames, timeout_seconds):
167
  if not video_path or not text_prompt:
168
  return None, "Missing video or prompt."
 
163
 
164
  return (image_pil, annotations)
165
 
166
+ @spaces.GPU
167
  def process_video_text(video_path, text_prompt, max_frames, timeout_seconds):
168
  if not video_path or not text_prompt:
169
  return None, "Missing video or prompt."