Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -566,7 +566,7 @@ async def gensfx(request: Request, prompt: str = None):
|
|
| 566 |
check_audio_rate_limit(client_ip)
|
| 567 |
if prompt is None:
|
| 568 |
prompt = (await request.json()).prompt
|
| 569 |
-
url = f"https://gen.pollinations.ai/audio/{prompt}?model=
|
| 570 |
async with httpx.AsyncClient(timeout=None) as client:
|
| 571 |
response = await client.get(url)
|
| 572 |
body_text = ""
|
|
|
|
| 566 |
check_audio_rate_limit(client_ip)
|
| 567 |
if prompt is None:
|
| 568 |
prompt = (await request.json()).prompt
|
| 569 |
+
url = f"https://gen.pollinations.ai/audio/{prompt}?model=elevenmusic&key={PKEY}"
|
| 570 |
async with httpx.AsyncClient(timeout=None) as client:
|
| 571 |
response = await client.get(url)
|
| 572 |
body_text = ""
|