Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ from token_bucket import Limiter, MemoryStorage
|
|
22 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
23 |
|
24 |
# Rate limiting configuration
|
25 |
-
RATE_LIMIT =
|
26 |
TOKEN_BUCKET_CAPACITY = RATE_LIMIT
|
27 |
TOKEN_BUCKET_REFILL_RATE = RATE_LIMIT / 60.0 # Tokens per second
|
28 |
|
|
|
22 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
23 |
|
24 |
# Rate limiting configuration
|
25 |
+
RATE_LIMIT = 10 # Requests per minute
|
26 |
TOKEN_BUCKET_CAPACITY = RATE_LIMIT
|
27 |
TOKEN_BUCKET_REFILL_RATE = RATE_LIMIT / 60.0 # Tokens per second
|
28 |
|