Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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' ํ
์คํธ ๋ฐ์ค ์ปดํฌ๋ํธ
|