Spaces:
Sleeping
Sleeping
Download scripts/init_project_technova.py from SteGONZALEZ/technova-api: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/SteGONZALEZ/technova-api/resolve/main/scripts/init_project_technova.py
- Command line
-
hf download hf://spaces/SteGONZALEZ/technova-api/scripts/init_project_technova.py
-
curl -L -o init_project_technova.py https://huggingface.co/spaces/SteGONZALEZ/technova-api/resolve/main/scripts/init_project_technova.py
703 Bytes
| from scripts.create_db import main as create_db | |
| from scripts.seed_from_csv import main as seed_csv | |
| from scripts.build_ml_features import main as build_ml_features | |
| from scripts.seed_ml_features import main as seed_ml_features | |
| # Script d'initialisation du projet : crée la base, ingère les CSV, construit les features, etc. | |
| def main(): | |
| print("Initialisation du projet") | |
| print("Création / vérification du schéma") | |
| create_db() | |
| print("Ingestion des CSV") | |
| seed_csv() | |
| print("Construction table ML features") | |
| build_ml_features() | |
| print("Remplissage table ML features") | |
| seed_ml_features() | |
| print("Initialisation terminée") | |
| if __name__ == "__main__": | |
| main() | |