CoolFace
Apppublic

Jarvis0525/ai-task-allocator

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
database.py12 linesDownload Raw Back to root
1import json2 3def load_data(file_path):4    """Loads employee data from a JSON file."""5    with open(file_path, "r", encoding="utf-8") as file:6        return json.load(file)7 8def save_data(file_path, data):9    """Saves employee data to a JSON file."""10    with open(file_path, "w", encoding="utf-8") as file:11        json.dump(data, file, indent=4)12