Zero_GPU_duration_fix
Browse files
app.py
CHANGED
|
@@ -718,7 +718,7 @@ blip_generated_name = ""
|
|
| 718 |
original_filename = ""
|
| 719 |
|
| 720 |
# --- MAIN INFERENCE FUNCTION WITH ZEROGPU DECORATOR ---
|
| 721 |
-
@spaces.GPU
|
| 722 |
def infer_video_depth_from_source(upload_video, video_url, filename, use_blip, create_thumbnail, *args):
|
| 723 |
"""Process video to generate depth maps and RGBD output with ZeroGPU acceleration"""
|
| 724 |
try:
|
|
|
|
| 718 |
original_filename = ""
|
| 719 |
|
| 720 |
# --- MAIN INFERENCE FUNCTION WITH ZEROGPU DECORATOR ---
|
| 721 |
+
@spaces.GPU(duration=300) # 5 Minuten für Video-Processing
|
| 722 |
def infer_video_depth_from_source(upload_video, video_url, filename, use_blip, create_thumbnail, *args):
|
| 723 |
"""Process video to generate depth maps and RGBD output with ZeroGPU acceleration"""
|
| 724 |
try:
|