KingNish commited on
Commit
68eb9a9
1 Parent(s): 14d257f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -144,8 +144,9 @@ def respond(message, history):
144
  query = json_data["arguments"]["query"]
145
  gr.Info("Generating Image, Please wait 10 sec...")
146
  seed = random.randint(1, 99999)
147
- query = query.replace(" ", "%20")
148
  image = f"![](https://image.pollinations.ai/prompt/{message_text}{query}?seed={seed})"
 
 
149
  yield image
150
  time.sleep(8)
151
  gr.Info("We are going to Update Our Image Generation Engine to more powerful ones in Next Update. ThankYou")
 
144
  query = json_data["arguments"]["query"]
145
  gr.Info("Generating Image, Please wait 10 sec...")
146
  seed = random.randint(1, 99999)
 
147
  image = f"![](https://image.pollinations.ai/prompt/{message_text}{query}?seed={seed})"
148
+ image = image.replace("\\n", "")
149
+ image = image.replace(" ", "%20")
150
  yield image
151
  time.sleep(8)
152
  gr.Info("We are going to Update Our Image Generation Engine to more powerful ones in Next Update. ThankYou")