Spaces:
Paused
Paused
fix comment
Browse files
app.py
CHANGED
@@ -279,7 +279,7 @@ class ClientGenerationManager:
|
|
279 |
self.request_timestamps.append(time.time())
|
280 |
|
281 |
def has_exceeded_limit(self,
|
282 |
-
limit=100): # Default limit:
|
283 |
with self.lock:
|
284 |
current_time = time.time()
|
285 |
# Filter timestamps to only include those within the last hour
|
|
|
279 |
self.request_timestamps.append(time.time())
|
280 |
|
281 |
def has_exceeded_limit(self,
|
282 |
+
limit=100): # Default limit: 100 requests per hour
|
283 |
with self.lock:
|
284 |
current_time = time.time()
|
285 |
# Filter timestamps to only include those within the last hour
|