Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -310,7 +310,7 @@ async def generate_image(prompt: str, request: Request):
|
|
| 310 |
|
| 311 |
print(f"[IMAGE GEN] Routing to model: {chosen_model}")
|
| 312 |
|
| 313 |
-
url = f"https://gen.pollinations.ai/image/{prompt}?model={chosen_model}&
|
| 314 |
|
| 315 |
async with httpx.AsyncClient() as client:
|
| 316 |
response = await client.get(url)
|
|
|
|
| 310 |
|
| 311 |
print(f"[IMAGE GEN] Routing to model: {chosen_model}")
|
| 312 |
|
| 313 |
+
url = f"https://gen.pollinations.ai/image/{prompt}?model={chosen_model}&key={PKEY}"
|
| 314 |
|
| 315 |
async with httpx.AsyncClient() as client:
|
| 316 |
response = await client.get(url)
|