Spaces:
Running
Running
zR
commited on
Commit
•
78a5545
1
Parent(s):
fda2e65
update
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def convert_prompt(prompt: str, retry_times: int = 3) -> str:
|
|
89 |
return prompt
|
90 |
|
91 |
|
92 |
-
@spaces.GPU(duration=
|
93 |
def infer(
|
94 |
prompt: str,
|
95 |
num_inference_steps: int,
|
@@ -172,7 +172,8 @@ with gr.Blocks() as demo:
|
|
172 |
|
173 |
with gr.Column():
|
174 |
gr.Markdown("**Optional Parameters** (default values are recommended)<br>"
|
175 |
-
"50 steps are recommended for most cases for a trade-off between speed and quality, ~
|
|
|
176 |
with gr.Row():
|
177 |
num_inference_steps = gr.Slider(label="Inference Steps", value=50, minimum=1, maximum=50)
|
178 |
guidance_scale = gr.Number(label="Guidance Scale", value=6.0)
|
|
|
89 |
return prompt
|
90 |
|
91 |
|
92 |
+
@spaces.GPU(duration=240)
|
93 |
def infer(
|
94 |
prompt: str,
|
95 |
num_inference_steps: int,
|
|
|
172 |
|
173 |
with gr.Column():
|
174 |
gr.Markdown("**Optional Parameters** (default values are recommended)<br>"
|
175 |
+
"50 steps are recommended for most cases for a trade-off between speed and quality, spend ~200 second<br>"
|
176 |
+
"You can reduce the inference steps to speed up generation, but this may result in lower video quality.")
|
177 |
with gr.Row():
|
178 |
num_inference_steps = gr.Slider(label="Inference Steps", value=50, minimum=1, maximum=50)
|
179 |
guidance_scale = gr.Number(label="Guidance Scale", value=6.0)
|