lunarflu HF Staff commited on
Commit
81ba37f
·
1 Parent(s): c160050

remove sephamore

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -19,7 +19,7 @@ from pytz import timezone
19
  #
20
  import asyncio
21
 
22
- semaphore = asyncio.Semaphore(1) # for concurrent tasks
23
 
24
  zurich_tz = timezone("Europe/Zurich")
25
 
@@ -145,10 +145,7 @@ async def dfif2(ctx, index: int, stage_1_result_path):
145
  print(f"Error: {e}")
146
  await ctx.reply('An error occurred while processing stage 2 upscaling. Please try again later.')
147
  #----------------------------------------------------------------------------------------------------------------------------
148
- async def process_dfif2(ctx, index, stage_1_result_path):
149
- async with semaphore:
150
- await dfif2(ctx, index, stage_1_result_path)
151
- #----------------------------------------------------------------------------------------------------------------------------
152
 
153
 
154
 
 
19
  #
20
  import asyncio
21
 
22
+
23
 
24
  zurich_tz = timezone("Europe/Zurich")
25
 
 
145
  print(f"Error: {e}")
146
  await ctx.reply('An error occurred while processing stage 2 upscaling. Please try again later.')
147
  #----------------------------------------------------------------------------------------------------------------------------
148
+
 
 
 
149
 
150
 
151