fffiloni commited on
Commit
5c3bd86
1 Parent(s): a00b386

fix variable name typo

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 (audio_in):
9
 
10
  # IMG_PATH: your image path (url or local file)
11
- IMG_PATH = audio_in
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
- audio_in
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