Spaces:
Paused
Paused
fix variable name typo
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ 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 (
|
9 |
|
10 |
# IMG_PATH: your image path (url or local file)
|
11 |
-
IMG_PATH =
|
12 |
output_video_path = pipe(IMG_PATH, output_video='output.mp4')[OutputKeys.OUTPUT_VIDEO]
|
13 |
print(output_video_path)
|
14 |
|
@@ -87,7 +87,7 @@ with gr.Blocks(css=css) as demo:
|
|
87 |
submit_btn.click(
|
88 |
fn = infer,
|
89 |
inputs = [
|
90 |
-
|
91 |
],
|
92 |
outputs = [
|
93 |
video_out
|
|
|
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)
|
11 |
+
IMG_PATH = image_in
|
12 |
output_video_path = pipe(IMG_PATH, output_video='output.mp4')[OutputKeys.OUTPUT_VIDEO]
|
13 |
print(output_video_path)
|
14 |
|
|
|
87 |
submit_btn.click(
|
88 |
fn = infer,
|
89 |
inputs = [
|
90 |
+
image_in
|
91 |
],
|
92 |
outputs = [
|
93 |
video_out
|