Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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."
|