Spaces:
Runtime error
Runtime error
seawolf2357
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,13 @@ image_model = pipeline("image-classification", model="google/vit-base-patch16-22
|
|
8 |
def generate_music(image_classification_result):
|
9 |
# ์์
์์ฑ API ํธ์ถ
|
10 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
)
|
19 |
|
20 |
# ์ด๋ฏธ์ง ๋ถ๋ฅ ๊ฒฐ๊ณผ๋ฅผ ํฌํจํ ์ ์ฒด ํ๋กฌํํธ ์์ฑ
|
|
|
8 |
def generate_music(image_classification_result):
|
9 |
# ์์
์์ฑ API ํธ์ถ
|
10 |
client = Client("https://haoheliu-audioldm2-text2audio-text2music.hf.space/")
|
11 |
+
"The rnb beat of 85BPM drums. playing Violin."
|
12 |
+
"Low quality."
|
13 |
+
5, # ์์
์ ๊ธธ์ด (์ด), ํค์๋ ์ธ์๋ก ๋ณ๊ฒฝ
|
14 |
+
0, # ๊ฐ์ด๋์ค ์ค์ผ์ผ, ํค์๋ ์ธ์๋ก ๋ณ๊ฒฝ
|
15 |
+
5, # ์๋ ๊ฐ, ํค์๋ ์ธ์๋ก ๋ณ๊ฒฝ
|
16 |
+
1, # ์์ฑํ waveform์ ์, ํค์๋ ์ธ์๋ก ๋ณ๊ฒฝ
|
17 |
+
fn_index=1 # ํจ์ ์ธ๋ฑ์ค, ์ด๋ฏธ ํค์๋ ์ธ์๋ก ๋์ด ์์
|
18 |
)
|
19 |
|
20 |
# ์ด๋ฏธ์ง ๋ถ๋ฅ ๊ฒฐ๊ณผ๋ฅผ ํฌํจํ ์ ์ฒด ํ๋กฌํํธ ์์ฑ
|