⏰ Increase rate limiting to 15s (5 req/min quota compliance)
This commit is contained in:
@@ -227,8 +227,8 @@ def main():
|
|||||||
else:
|
else:
|
||||||
failed += 1
|
failed += 1
|
||||||
|
|
||||||
# Rate limiting
|
# Rate limiting (5 requests/min limit)
|
||||||
time.sleep(2)
|
time.sleep(15)
|
||||||
|
|
||||||
# Progress
|
# Progress
|
||||||
progress = ((current / total_creatures) * 100)
|
progress = ((current / total_creatures) * 100)
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ def run_generation():
|
|||||||
else:
|
else:
|
||||||
stats['failed'] += 1
|
stats['failed'] += 1
|
||||||
|
|
||||||
time.sleep(2) # Rate limiting
|
time.sleep(15) # Rate limiting (5 req/min limit)
|
||||||
|
|
||||||
# Generate styleB
|
# Generate styleB
|
||||||
stats['total'] += 1
|
stats['total'] += 1
|
||||||
@@ -164,7 +164,7 @@ def run_generation():
|
|||||||
progress = (stats['total'] / manifest['remaining']) * 100
|
progress = (stats['total'] / manifest['remaining']) * 100
|
||||||
print(f"\n📊 Progress: {progress:.1f}% | Success: {stats['success']} | Failed: {stats['failed']}")
|
print(f"\n📊 Progress: {progress:.1f}% | Success: {stats['success']} | Failed: {stats['failed']}")
|
||||||
|
|
||||||
time.sleep(2) # Rate limiting
|
time.sleep(15) # Rate limiting (5 req/min limit)
|
||||||
|
|
||||||
# Final summary
|
# Final summary
|
||||||
print("\n" + "="*70)
|
print("\n" + "="*70)
|
||||||
|
|||||||
Reference in New Issue
Block a user