Spaces:
Sleeping
Sleeping
Use fffiloni’s ACE API
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def check_api(model_name):
|
|
| 49 |
return "api not ready yet"
|
| 50 |
elif model_name == "ACE Step":
|
| 51 |
try :
|
| 52 |
-
client = Client("ACE-Step
|
| 53 |
return "api ready"
|
| 54 |
except :
|
| 55 |
return "api not ready yet"
|
|
@@ -194,7 +194,7 @@ def get_stable_audio_open(prompt):
|
|
| 194 |
def get_ace(prompt):
|
| 195 |
from gradio_client import Client, handle_file
|
| 196 |
|
| 197 |
-
client = Client("ACE-Step
|
| 198 |
result = client.predict(
|
| 199 |
audio_duration=-1,
|
| 200 |
prompt=prompt,
|
|
|
|
| 49 |
return "api not ready yet"
|
| 50 |
elif model_name == "ACE Step":
|
| 51 |
try :
|
| 52 |
+
client = Client("fffiloni/ACE-Step-API", hf_token=hf_token)
|
| 53 |
return "api ready"
|
| 54 |
except :
|
| 55 |
return "api not ready yet"
|
|
|
|
| 194 |
def get_ace(prompt):
|
| 195 |
from gradio_client import Client, handle_file
|
| 196 |
|
| 197 |
+
client = Client("fffiloni/ACE-Step-API", hf_token=hf_token)
|
| 198 |
result = client.predict(
|
| 199 |
audio_duration=-1,
|
| 200 |
prompt=prompt,
|