Spaces:
Runtime error
Runtime error
Canstralian
commited on
Create config.py
Browse files
config.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
|
4 |
+
load_dotenv()
|
5 |
+
|
6 |
+
class Config:
|
7 |
+
FILE_UPLOAD_LIMIT = int(os.getenv('FILE_UPLOAD_LIMIT', 200))
|
8 |
+
EXECUTION_TIME_LIMIT = int(os.getenv('EXECUTION_TIME_LIMIT', 300))
|
9 |
+
RESOURCE_LIMIT = int(os.getenv('RESOURCE_LIMIT', 1024)) # in MB
|
10 |
+
DATA_DIR = os.getenv('DATA_DIR', './data')
|
11 |
+
CONFIG_FLAG = os.getenv('CONFIG_FLAG', 'default')
|