Spaces:
Sleeping
Sleeping
Download config.py from hackrock18/cloud-data-janitor: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/hackrock18/cloud-data-janitor/resolve/main/config.py
- Command line
-
hf download hf://spaces/hackrock18/cloud-data-janitor/config.py
-
curl -L -o config.py https://huggingface.co/spaces/hackrock18/cloud-data-janitor/resolve/main/config.py
1.28 kB
| # config.py | |
| import os | |
| import os | |
| GROK_API_KEY = os.getenv("GROK_API_KEY") | |
| MODEL_NAME = "grok-3-fast-beta" | |
| MAX_TOKENS = 4096 | |
| # File system paths | |
| DATA_DIR = "data" | |
| INITIAL_STATE_FILE = "data/initial_state.json" | |
| FINAL_STATE_FILE = "data/final_state.json" | |
| # Task difficulty | |
| TASK_EASY = "easy" | |
| TASK_MEDIUM = "medium" | |
| TASK_HARD = "hard" | |
| # File categories | |
| FILE_CATEGORIES = { | |
| "Documents": [".pdf", ".doc", ".docx", ".txt", ".ppt", ".pptx", ".xls", ".xlsx"], | |
| "Images": [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".svg", ".webp"], | |
| "Videos": [".mp4", ".avi", ".mov", ".mkv", ".wmv"], | |
| "Audio": [".mp3", ".wav", ".flac", ".aac", ".ogg"], | |
| "Archives": [".zip", ".tar", ".gz", ".rar", ".7z"], | |
| "Code": [".py", ".js", ".ts", ".html", ".css", ".java", ".cpp", ".c"], | |
| "Data": [".json", ".csv", ".xml", ".sql"], | |
| } | |
| # Hard task constraints | |
| STORAGE_LIMIT_MB = 500 # Free up 500MB | |
| OLD_FILE_THRESHOLD_YEARS = 3 # Files older than 3 years are eligible for deletion | |
| LARGE_FOLDER_THRESHOLD_MB = 100 # Folders larger than 100MB are eligible for zipping | |
| RECENT_DAYS_THRESHOLD = 90 # Files accessed within 90 days are "recent" | |
| # Grader settings | |
| CORRECT_MOVE_SCORE = 1.0 | |
| INCORRECT_PENALTY = -1.0 | |
| # Agent settings | |
| MAX_AGENT_STEPS = 100 | |
| AGENT_TEMPERATURE = 0.2 | |