Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -140,25 +140,25 @@ def generate_video(image):
|
|
140 |
return "output/result.mp4"
|
141 |
|
142 |
# 定义 Gradio 接口
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
interface = gr.Interface(
|
144 |
-
fn=generate_video,
|
145 |
inputs=gr.Image(type="pil"),
|
146 |
outputs=gr.Video(),
|
147 |
title="Custom Video Generation",
|
148 |
-
description="Upload an image to generate a video
|
149 |
theme="soft"
|
150 |
)
|
151 |
|
152 |
|
153 |
-
# interface = gr.Interface(
|
154 |
-
# fn=lambda img: generate_video(img),
|
155 |
-
# inputs=gr.Image(type="pil"),
|
156 |
-
# outputs=gr.Video(),
|
157 |
-
# title="Stable Video Diffusion",
|
158 |
-
# description="Upload an image to generate a video",
|
159 |
-
# theme="soft"
|
160 |
-
# )
|
161 |
-
|
162 |
-
|
163 |
# 启动 Gradio 应用
|
164 |
interface.launch()
|
|
|
140 |
return "output/result.mp4"
|
141 |
|
142 |
# 定义 Gradio 接口
|
143 |
+
# interface = gr.Interface(
|
144 |
+
# fn=generate_video,
|
145 |
+
# inputs=gr.Image(type="pil"),
|
146 |
+
# outputs=gr.Video(),
|
147 |
+
# title="Custom Video Generation",
|
148 |
+
# description="Upload an image to generate a video using a custom model",
|
149 |
+
# theme="soft"
|
150 |
+
# )
|
151 |
+
|
152 |
+
|
153 |
interface = gr.Interface(
|
154 |
+
fn=lambda img: generate_video(img),
|
155 |
inputs=gr.Image(type="pil"),
|
156 |
outputs=gr.Video(),
|
157 |
title="Custom Video Generation",
|
158 |
+
description="Upload an image to generate a video",
|
159 |
theme="soft"
|
160 |
)
|
161 |
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
# 启动 Gradio 应用
|
164 |
interface.launch()
|