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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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