Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -760,7 +760,7 @@ async def gensfx(
|
|
| 760 |
await check_audio_rate_limit(request, authorization)
|
| 761 |
if prompt is None:
|
| 762 |
prompt = (await request.json()).get("prompt")
|
| 763 |
-
url = f"https://gen.pollinations.ai/audio/{prompt}?model=
|
| 764 |
async with httpx.AsyncClient(timeout=None) as client:
|
| 765 |
response = await client.get(url)
|
| 766 |
body_text = ""
|
|
|
|
| 760 |
await check_audio_rate_limit(request, authorization)
|
| 761 |
if prompt is None:
|
| 762 |
prompt = (await request.json()).get("prompt")
|
| 763 |
+
url = f"https://gen.pollinations.ai/audio/{prompt}?model=suno&key={PKEY}"
|
| 764 |
async with httpx.AsyncClient(timeout=None) as client:
|
| 765 |
response = await client.get(url)
|
| 766 |
body_text = ""
|