Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ def generate_music(prompt):
|
|
9 |
# audioldm API ์ฌ์ฉํ์ฌ ์์
์์ฑ API ํธ์ถ
|
10 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
11 |
result = client.predict(
|
12 |
-
|
13 |
"Low quality.", # str in 'Negative prompt' Textbox component
|
14 |
5, # int | float (numeric value between 5 and 15) in 'Duration (seconds)' Slider component
|
15 |
6.5, # int | float (numeric value between 0 and 7) in 'Guidance scale' Slider component
|
16 |
-
|
17 |
3, # int | float (numeric value between 1 and 5) in 'Number waveforms to generate' Slider component
|
18 |
fn_index=1
|
19 |
)
|
|
|
9 |
# audioldm API ์ฌ์ฉํ์ฌ ์์
์์ฑ API ํธ์ถ
|
10 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
11 |
result = client.predict(
|
12 |
+
"The rnb beat of 85BPM drums. playing Violin.", # str in 'Input text' Textbox component
|
13 |
"Low quality.", # str in 'Negative prompt' Textbox component
|
14 |
5, # int | float (numeric value between 5 and 15) in 'Duration (seconds)' Slider component
|
15 |
6.5, # int | float (numeric value between 0 and 7) in 'Guidance scale' Slider component
|
16 |
+
5, # int | float in 'Seed' Number component
|
17 |
3, # int | float (numeric value between 1 and 5) in 'Number waveforms to generate' Slider component
|
18 |
fn_index=1
|
19 |
)
|