Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
·
900452a
1
Parent(s):
33f2431
fix app
Browse files
app.py
CHANGED
@@ -156,10 +156,10 @@ def infer(prompt, output_size="256x256"):
|
|
156 |
return video_path
|
157 |
|
158 |
examples = [
|
159 |
-
"A chihuahua in astronaut suit floating in space, cinematic lighting, glow effect",
|
160 |
-
"Campfire at night in a snowy forest with starry sky in the background",
|
161 |
-
"A corgi is swimming quickly",
|
162 |
-
"A panda is surfing in the universe",
|
163 |
]
|
164 |
|
165 |
css = """
|
@@ -261,10 +261,10 @@ with gr.Blocks(css=css) as demo:
|
|
261 |
submit_btn = gr.Button("Generate")
|
262 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
263 |
|
264 |
-
gr.Examples(examples=examples, inputs=[prompt_in])
|
265 |
|
266 |
submit_btn.click(fn=infer,
|
267 |
-
inputs=[prompt_in],
|
268 |
outputs=[video_result],
|
269 |
api_name="zrscp")
|
270 |
|
|
|
156 |
return video_path
|
157 |
|
158 |
examples = [
|
159 |
+
["A chihuahua in astronaut suit floating in space, cinematic lighting, glow effect",],
|
160 |
+
["Campfire at night in a snowy forest with starry sky in the background",],
|
161 |
+
["A corgi is swimming quickly",],
|
162 |
+
["A panda is surfing in the universe",],
|
163 |
]
|
164 |
|
165 |
css = """
|
|
|
261 |
submit_btn = gr.Button("Generate")
|
262 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
263 |
|
264 |
+
gr.Examples(examples=examples, inputs=[prompt_in, output_size])
|
265 |
|
266 |
submit_btn.click(fn=infer,
|
267 |
+
inputs=[prompt_in, output_size],
|
268 |
outputs=[video_result],
|
269 |
api_name="zrscp")
|
270 |
|