Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -23,7 +23,7 @@ from configuration import definitions, parameters
|
|
| 23 |
|
| 24 |
# Rate limiting configuration - 3 requests per hour per IP
|
| 25 |
WINDOW_S = 3600
|
| 26 |
-
MAX_CALLS =
|
| 27 |
_calls = defaultdict(deque) # ip -> timestamps
|
| 28 |
_calls_lock = threading.Lock() # Thread-safe access to rate limit state
|
| 29 |
|
|
@@ -52,7 +52,7 @@ EXAMPLES = {
|
|
| 52 |
"file_paths": ["samples/OIT-NASK-IAGen_WP140_web.pdf"]
|
| 53 |
},
|
| 54 |
"Energy and AI": {
|
| 55 |
-
"question": "
|
| 56 |
"file_paths": ["samples/EnergyandAI.pdf"]
|
| 57 |
},
|
| 58 |
"Digital Progress and Trends Report 2025": {
|
|
|
|
| 23 |
|
| 24 |
# Rate limiting configuration - 3 requests per hour per IP
|
| 25 |
WINDOW_S = 3600
|
| 26 |
+
MAX_CALLS = 5
|
| 27 |
_calls = defaultdict(deque) # ip -> timestamps
|
| 28 |
_calls_lock = threading.Lock() # Thread-safe access to rate limit state
|
| 29 |
|
|
|
|
| 52 |
"file_paths": ["samples/OIT-NASK-IAGen_WP140_web.pdf"]
|
| 53 |
},
|
| 54 |
"Energy and AI": {
|
| 55 |
+
"question": "Explain electricity consumption across different AI model types?",
|
| 56 |
"file_paths": ["samples/EnergyandAI.pdf"]
|
| 57 |
},
|
| 58 |
"Digital Progress and Trends Report 2025": {
|