Spaces:
Paused
Paused
ZERO GPU ready
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
from modelscope.pipelines import pipeline
|
4 |
from modelscope.outputs import OutputKeys
|
5 |
|
6 |
pipe = pipeline(task='image-to-video', model='damo/Image-to-Video', model_revision='v1.1.0')
|
7 |
|
|
|
8 |
def infer (image_in):
|
9 |
|
10 |
# IMG_PATH: your image path (url or local file)
|
|
|
1 |
import gradio as gr
|
2 |
+
import spaces
|
3 |
|
4 |
from modelscope.pipelines import pipeline
|
5 |
from modelscope.outputs import OutputKeys
|
6 |
|
7 |
pipe = pipeline(task='image-to-video', model='damo/Image-to-Video', model_revision='v1.1.0')
|
8 |
|
9 |
+
@spaces.GPU(duration=120)
|
10 |
def infer (image_in):
|
11 |
|
12 |
# IMG_PATH: your image path (url or local file)
|