Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|