Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def extend_video(video_path, seconds):
|
| 6 |
if not video_path:
|
|
|
|
| 1 |
import os
|
| 2 |
import subprocess
|
| 3 |
import gradio as gr
|
| 4 |
+
import spaces # <--- 1. Import the spaces module
|
| 5 |
+
|
| 6 |
+
# 2. Add this decorator to satisfy the ZeroGPU runtime check
|
| 7 |
+
@spaces.GPU
|
| 8 |
+
|
| 9 |
|
| 10 |
def extend_video(video_path, seconds):
|
| 11 |
if not video_path:
|