sharktide commited on
Commit
d6ef40f
·
verified ·
1 Parent(s): 35ac072

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -441,7 +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/{quote(prompt)}?model={chosen_model}&key={PKEY2}"
445
  async with httpx.AsyncClient(timeout = timeout) as client:
446
  response = await client.get(url)
447
 
 
441
 
442
  print(f"[IMAGE GEN] Routing to model: {chosen_model}")
443
 
444
+ url = f"https://gen.pollinations.ai/image/{quote(prompt, safe='')}?model={chosen_model}&key={PKEY2}"
445
  async with httpx.AsyncClient(timeout = timeout) as client:
446
  response = await client.get(url)
447