SergeyO7 commited on
Commit
27dd8d8
·
verified ·
1 Parent(s): c59b7ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
23
 
24
  # Rate limiting configuration
25
  MAX_MODEL_CALLS_PER_MINUTE = 12 # Conservative buffer below 15 RPM
 
26
  RATE_LIMIT = MAX_MODEL_CALLS_PER_MINUTE
27
  TOKEN_BUCKET_REFILL_RATE = RATE_LIMIT / 60.0 # Tokens per second
28
 
 
23
 
24
  # Rate limiting configuration
25
  MAX_MODEL_CALLS_PER_MINUTE = 12 # Conservative buffer below 15 RPM
26
+ TOKEN_BUCKET_CAPACITY = RATE_LIMIT
27
  RATE_LIMIT = MAX_MODEL_CALLS_PER_MINUTE
28
  TOKEN_BUCKET_REFILL_RATE = RATE_LIMIT / 60.0 # Tokens per second
29