Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,18 +22,16 @@ def generate_music(prompt):
|
|
22 |
return result"""
|
23 |
client = Client("https://haoheliu-audioldm-48k-text-to-hifiaudio-generation.hf.space/")
|
24 |
result = client.predict(
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
1, # int | float (numeric value between 1 and 3)
|
32 |
-
in 'Automatic quality control. This number control the number of candidates (e.g., generate three audios and choose the best to show you). A Larger value usually lead to better quality with heavier computation' Slider component
|
33 |
-
api_name="/text2audio"
|
34 |
)
|
35 |
print(result)
|
36 |
|
|
|
37 |
def generate_voice(prompt):
|
38 |
# Tango API๋ฅผ ์ฌ์ฉํ์ฌ ์์ฑ ์์ฑ
|
39 |
client = Client("https://declare-lab-tango.hf.space/")
|
|
|
22 |
return result"""
|
23 |
client = Client("https://haoheliu-audioldm-48k-text-to-hifiaudio-generation.hf.space/")
|
24 |
result = client.predict(
|
25 |
+
prompt="Howdy!", # 'Input your text here' ํ
์คํธ ๋ฐ์ค ์ปดํฌ๋ํธ
|
26 |
+
duration=5, # 'Duration (seconds)' ์ฌ๋ผ์ด๋ ์ปดํฌ๋ํธ์์์ ๊ฐ ๋ฒ์ (5 ~ 15)
|
27 |
+
guidance_scale=0, # 'Guidance scale' ์ฌ๋ผ์ด๋ ์ปดํฌ๋ํธ์์์ ๊ฐ ๋ฒ์ (0 ~ 6)
|
28 |
+
seed=5, # 'Seed' ์ซ์ ์ปดํฌ๋ํธ์ ๊ฐ
|
29 |
+
num_waveforms=1, # 'Number waveforms to generate' ์ฌ๋ผ์ด๋ ์ปดํฌ๋ํธ์์์ ๊ฐ ๋ฒ์ (1 ~ 3)
|
30 |
+
api_name="/text2audio" # API ์๋ํฌ์ธํธ ๊ฒฝ๋ก
|
|
|
|
|
|
|
31 |
)
|
32 |
print(result)
|
33 |
|
34 |
+
|
35 |
def generate_voice(prompt):
|
36 |
# Tango API๋ฅผ ์ฌ์ฉํ์ฌ ์์ฑ ์์ฑ
|
37 |
client = Client("https://declare-lab-tango.hf.space/")
|