lunarflu HF Staff commited on
Commit
ac0690a
·
1 Parent(s): 5710925

[dfif2] number >>> position

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -424,7 +424,15 @@ async def deepfloydif(ctx, *, prompt: str):
424
  async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id): # add safetychecks
425
  try:
426
  number = index + 1
427
- await thread.send(f"Upscaling number {number}...")
 
 
 
 
 
 
 
 
428
 
429
  # run blocking function in executor
430
  loop = asyncio.get_running_loop()
 
424
  async def dfif2(index: int, stage_1_result_path, thread, dfif_command_message_id): # add safetychecks
425
  try:
426
  number = index + 1
427
+ if number == 1:
428
+ position = "top left"
429
+ elif number == 2:
430
+ position = "top right"
431
+ elif number == 3:
432
+ position = "bottom left"
433
+ elif number == 4:
434
+ position = "bottom right"
435
+ await thread.send(f"Upscaling the {position} image...")
436
 
437
  # run blocking function in executor
438
  loop = asyncio.get_running_loop()