Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -441,8 +441,7 @@ async def generate_image(request: Request, prompt: str = None):
|
|
| 441 |
|
| 442 |
print(f"[IMAGE GEN] Routing to model: {chosen_model}")
|
| 443 |
|
| 444 |
-
url = f"https://gen.pollinations.ai/image/{prompt}?model={chosen_model}&key={PKEY2}"
|
| 445 |
-
print(url)
|
| 446 |
async with httpx.AsyncClient(timeout = timeout) as client:
|
| 447 |
response = await client.get(url)
|
| 448 |
|
|
|
|
| 441 |
|
| 442 |
print(f"[IMAGE GEN] Routing to model: {chosen_model}")
|
| 443 |
|
| 444 |
+
url = f"https://gen.pollinations.ai/image/{quote(prompt)}?model={chosen_model}&key={PKEY2}"
|
|
|
|
| 445 |
async with httpx.AsyncClient(timeout = timeout) as client:
|
| 446 |
response = await client.get(url)
|
| 447 |
|