Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,6 @@ model = Owlv2ForObjectDetection.from_pretrained("google/owlv2-base-patch16")
|
|
| 18 |
|
| 19 |
model = model.to(device).half()
|
| 20 |
|
| 21 |
-
@spaces.GPU(duration=120)
|
| 22 |
def process_video(video_path, target, progress=gr.Progress()):
|
| 23 |
if video_path is None:
|
| 24 |
return None, None, "Error: No video uploaded"
|
|
|
|
| 18 |
|
| 19 |
model = model.to(device).half()
|
| 20 |
|
|
|
|
| 21 |
def process_video(video_path, target, progress=gr.Progress()):
|
| 22 |
if video_path is None:
|
| 23 |
return None, None, "Error: No video uploaded"
|