seawolf2357 commited on
Commit
0a6664d
ยท
verified ยท
1 Parent(s): bc5fe2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- "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
  # ์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜ ๊ฒฐ๊ณผ๋ฅผ ํฌํ•จํ•œ ์ „์ฒด ํ”„๋กฌํ”„ํŠธ ์ƒ์„ฑ
 
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
  # ์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜ ๊ฒฐ๊ณผ๋ฅผ ํฌํ•จํ•œ ์ „์ฒด ํ”„๋กฌํ”„ํŠธ ์ƒ์„ฑ