Spaces:
Running
Running
zR
commited on
Commit
•
fda2e65
1
Parent(s):
3d75c8c
update
Browse files- app.py +3 -3
- requirements.txt +1 -1
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,9 +172,9 @@ with gr.Blocks() as demo:
|
|
172 |
|
173 |
with gr.Column():
|
174 |
gr.Markdown("**Optional Parameters** (default values are recommended)<br>"
|
175 |
-
"
|
176 |
with gr.Row():
|
177 |
-
num_inference_steps = gr.Slider(label="Inference Steps", value=
|
178 |
guidance_scale = gr.Number(label="Guidance Scale", value=6.0)
|
179 |
generate_button = gr.Button("🎬 Generate Video")
|
180 |
|
|
|
89 |
return prompt
|
90 |
|
91 |
|
92 |
+
@spaces.GPU(duration=200)
|
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, ~150 second<br>")
|
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)
|
179 |
generate_button = gr.Button("🎬 Generate Video")
|
180 |
|
requirements.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
gradio==4.40.0
|
2 |
imageio-ffmpeg==0.5.1
|
3 |
torch==2.2.0
|
4 |
-
git+https://github.com/huggingface/diffusers.git@
|
5 |
transformers==4.42.0
|
6 |
spaces==0.29.2
|
7 |
moviepy==1.0.3
|
|
|
1 |
gradio==4.40.0
|
2 |
imageio-ffmpeg==0.5.1
|
3 |
torch==2.2.0
|
4 |
+
git+https://github.com/huggingface/diffusers.git@878f609aa5ce4a78fea0f048726889debde1d7e8#egg=diffusers
|
5 |
transformers==4.42.0
|
6 |
spaces==0.29.2
|
7 |
moviepy==1.0.3
|