Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def check_api(model_name):
|
|
43 |
return "api not ready yet"
|
44 |
elif model_name == "Stable Audio Open":
|
45 |
try:
|
46 |
-
client = Client("
|
47 |
return "api ready"
|
48 |
except:
|
49 |
return "api not ready yet"
|
@@ -190,7 +190,7 @@ def get_musicgen(prompt):
|
|
190 |
return result[1]
|
191 |
|
192 |
def get_stable_audio_open(prompt):
|
193 |
-
client = Client("
|
194 |
result = client.predict(
|
195 |
prompt=prompt,
|
196 |
seconds_total=30,
|
|
|
43 |
return "api not ready yet"
|
44 |
elif model_name == "Stable Audio Open":
|
45 |
try:
|
46 |
+
client = Client("fffiloni/Stable-Audio-Open-A10", hf_token=hf_token)
|
47 |
return "api ready"
|
48 |
except:
|
49 |
return "api not ready yet"
|
|
|
190 |
return result[1]
|
191 |
|
192 |
def get_stable_audio_open(prompt):
|
193 |
+
client = Client("fffiloni/Stable-Audio-Open-A10", hf_token=hf_token)
|
194 |
result = client.predict(
|
195 |
prompt=prompt,
|
196 |
seconds_total=30,
|