coollsd commited on
Commit
ff87641
·
verified ·
1 Parent(s): 14e3dba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -770,7 +770,7 @@ async def retry_upload(upload_url: str, file_content: bytes, content_type: str,
770
  except Exception as e:
771
  print(f"Error during upload attempt {retries + 1}: {e}")
772
 
773
- retries += 1
774
  await asyncio.sleep(delay)
775
  delay = min(delay * 2, 60) # Exponential backoff, capped at 60 seconds
776
 
 
770
  except Exception as e:
771
  print(f"Error during upload attempt {retries + 1}: {e}")
772
 
773
+ retries += 1
774
  await asyncio.sleep(delay)
775
  delay = min(delay * 2, 60) # Exponential backoff, capped at 60 seconds
776