Chandima Prabhath commited on
Commit
3b40669
·
1 Parent(s): 6dfcfe8

Update image generation message to handle singular and plural cases

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -230,7 +230,7 @@ def _fn_generate_images(
230
  height: Optional[int] = None,
231
  **_
232
  ):
233
- _fn_send_accept(message_id, chat_id, f"✨ Generating {count} image(s)…")
234
  for i in range(1, count+1):
235
  try:
236
  img, path, ret_p, url = generate_image(
 
230
  height: Optional[int] = None,
231
  **_
232
  ):
233
+ _fn_send_accept(message_id, chat_id, f"✨ Generating {count if count != 1 else 'a'} image{'s' if count != 1 else ''}...")
234
  for i in range(1, count+1):
235
  try:
236
  img, path, ret_p, url = generate_image(