Spaces:
Runtime error
Runtime error
Person screaming
#263
by
GuchiVanPelt
- opened
- app.py +2 -3
- requirements.txt +1 -1
app.py
CHANGED
@@ -34,7 +34,6 @@ def text2audio(text, negative_prompt, duration, guidance_scale, random_seed, n_c
|
|
34 |
text,
|
35 |
audio_length_in_s=duration,
|
36 |
guidance_scale=guidance_scale,
|
37 |
-
num_inference_steps=100,
|
38 |
negative_prompt=negative_prompt,
|
39 |
num_waveforms_per_prompt=n_candidates if n_candidates else 1,
|
40 |
generator=generator.manual_seed(int(random_seed)),
|
@@ -195,8 +194,8 @@ with iface:
|
|
195 |
duration = gr.Slider(2.5, 10, value=5, step=2.5, label="Duration (seconds)")
|
196 |
guidance_scale = gr.Slider(
|
197 |
0,
|
198 |
-
|
199 |
-
value=
|
200 |
step=0.5,
|
201 |
label="Guidance scale",
|
202 |
info="Large => better quality and relevancy to text; Small => better diversity",
|
|
|
34 |
text,
|
35 |
audio_length_in_s=duration,
|
36 |
guidance_scale=guidance_scale,
|
|
|
37 |
negative_prompt=negative_prompt,
|
38 |
num_waveforms_per_prompt=n_candidates if n_candidates else 1,
|
39 |
generator=generator.manual_seed(int(random_seed)),
|
|
|
194 |
duration = gr.Slider(2.5, 10, value=5, step=2.5, label="Duration (seconds)")
|
195 |
guidance_scale = gr.Slider(
|
196 |
0,
|
197 |
+
4,
|
198 |
+
value=2.5,
|
199 |
step=0.5,
|
200 |
label="Guidance scale",
|
201 |
info="Large => better quality and relevancy to text; Small => better diversity",
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
git+https://github.com/huggingface/diffusers.git
|
2 |
git+https://github.com/huggingface/transformers.git
|
3 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
4 |
-
torch
|
|
|
1 |
git+https://github.com/huggingface/diffusers.git
|
2 |
git+https://github.com/huggingface/transformers.git
|
3 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
4 |
+
torch >= 2.0
|