Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
•
b1a8a7e
1
Parent(s):
a223ac9
fix app
Browse files
app.py
CHANGED
@@ -258,14 +258,11 @@ with gr.Blocks(css=css) as demo:
|
|
258 |
|
259 |
prompt_in = gr.Textbox(label="Prompt", placeholder="A chihuahua in astronaut suit floating in space, cinematic lighting, glow effect")
|
260 |
# output_size = gr.Dropdown(["576x1024", "256x256"], label="Output Size", info="576x1024 is watermark-free")
|
261 |
-
output_size = gr.Dropdown(["576x1024", "256x256"],
|
262 |
submit_btn = gr.Button("Generate")
|
263 |
video_result = gr.Video(label="Video Output")
|
264 |
|
265 |
-
|
266 |
-
print(output_size._id)
|
267 |
-
|
268 |
-
# gr.Examples(examples=examples, inputs=[prompt_in, output_size])
|
269 |
|
270 |
submit_btn.click(fn=infer,
|
271 |
inputs=[prompt_in, output_size],
|
|
|
258 |
|
259 |
prompt_in = gr.Textbox(label="Prompt", placeholder="A chihuahua in astronaut suit floating in space, cinematic lighting, glow effect")
|
260 |
# output_size = gr.Dropdown(["576x1024", "256x256"], label="Output Size", info="576x1024 is watermark-free")
|
261 |
+
output_size = gr.Dropdown(["576x1024", "256x256"], value="256x256", label="Output Size", info="576x1024 is watermark-free")
|
262 |
submit_btn = gr.Button("Generate")
|
263 |
video_result = gr.Video(label="Video Output")
|
264 |
|
265 |
+
gr.Examples(examples=examples, inputs=[prompt_in, output_size])
|
|
|
|
|
|
|
266 |
|
267 |
submit_btn.click(fn=infer,
|
268 |
inputs=[prompt_in, output_size],
|