Spaces:
Sleeping
Sleeping
Anonymous
commited on
Commit
•
d4f0d67
1
Parent(s):
47446fb
update app
Browse files
app.py
CHANGED
@@ -241,10 +241,15 @@ with gr.Blocks(css=css) as demo:
|
|
241 |
"""
|
242 |
)
|
243 |
|
244 |
-
prompt_in = gr.Textbox(label="Prompt", placeholder="
|
245 |
#neg_prompt = gr.Textbox(label="Negative prompt", value="text, watermark, copyright, blurry, nsfw", elem_id="neg-prompt-in")
|
246 |
#inference_steps = gr.Slider(label="Inference Steps", minimum=10, maximum=100, step=1, value=40, interactive=False)
|
247 |
submit_btn = gr.Button("Submit")
|
248 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
249 |
|
|
|
|
|
|
|
|
|
|
|
250 |
demo.queue(max_size=12).launch(show_api=True)
|
|
|
241 |
"""
|
242 |
)
|
243 |
|
244 |
+
prompt_in = gr.Textbox(label="Prompt", placeholder="A chihuahua in astronaut suit floating in space, cinematic lighting, glow effect", elem_id="prompt-in")
|
245 |
#neg_prompt = gr.Textbox(label="Negative prompt", value="text, watermark, copyright, blurry, nsfw", elem_id="neg-prompt-in")
|
246 |
#inference_steps = gr.Slider(label="Inference Steps", minimum=10, maximum=100, step=1, value=40, interactive=False)
|
247 |
submit_btn = gr.Button("Submit")
|
248 |
video_result = gr.Video(label="Video Output", elem_id="video-output")
|
249 |
|
250 |
+
submit_btn.click(fn=infer,
|
251 |
+
inputs=[prompt_in],
|
252 |
+
outputs=[video_result],
|
253 |
+
api_name="zrscp")
|
254 |
+
|
255 |
demo.queue(max_size=12).launch(show_api=True)
|