seawolf2357 commited on
Commit
0048511
ยท
verified ยท
1 Parent(s): 46ad89d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -6,20 +6,6 @@ from gradio_client import Client
6
  image_model = pipeline("image-classification", model="google/vit-base-patch16-224")
7
 
8
  def generate_music(prompt):
9
- """ # audioldm API ์‚ฌ์šฉํ•˜์—ฌ ์Œ์•… ์ƒ์„ฑ API ํ˜ธ์ถœ
10
- client = Client("https://haoheliu-audioldm-48k-text-to-hifiaudio-generation.hf.space/")
11
- result = client.predict(
12
- "playing piano.", # 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
- 5.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
- api_name="/text2audio"
19
- )
20
- print(result)
21
- #audio_result = extract_audio(result)
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' ํ…์ŠคํŠธ ๋ฐ•์Šค ์ปดํฌ๋„ŒํŠธ
 
6
  image_model = pipeline("image-classification", model="google/vit-base-patch16-224")
7
 
8
  def generate_music(prompt):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  client = Client("https://haoheliu-audioldm-48k-text-to-hifiaudio-generation.hf.space/")
10
  result = client.predict(
11
  prompt="Howdy!", # 'Input your text here' ํ…์ŠคํŠธ ๋ฐ•์Šค ์ปดํฌ๋„ŒํŠธ