KingNish commited on
Commit
d08e48e
·
verified ·
1 Parent(s): b844a86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -198,6 +198,7 @@ def respond(
198
  query = json_data["arguments"]["query"]
199
  gr.Info("Generating Image, Please wait...")
200
  seed = random.randint(1, 99999)
 
201
  image = f"![](https://image.pollinations.ai/prompt/{query}?{seed})"
202
  yield image
203
  gr.Info("We are going to Update Our Image Generation Engine to more powerful ones in Next Update. ThankYou")
 
198
  query = json_data["arguments"]["query"]
199
  gr.Info("Generating Image, Please wait...")
200
  seed = random.randint(1, 99999)
201
+ query = query.replace(" ", "%20")
202
  image = f"![](https://image.pollinations.ai/prompt/{query}?{seed})"
203
  yield image
204
  gr.Info("We are going to Update Our Image Generation Engine to more powerful ones in Next Update. ThankYou")