Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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 |
|