cedpsam commited on
Commit
d882530
1 Parent(s): 3c39bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def generate_img(prompt):
15
  return result
16
 
17
  def pollinations_url_seedless(a, width=512, height=512):
18
- urlprompt=quote(a, errors="ignore")
19
  url=f"https://image.pollinations.ai/prompt/{urlprompt}?width={width}&height={height}"
20
  return url
21
 
 
15
  return result
16
 
17
  def pollinations_url_seedless(a, width=512, height=512):
18
+ urlprompt=quote(str(a))
19
  url=f"https://image.pollinations.ai/prompt/{urlprompt}?width={width}&height={height}"
20
  return url
21