Spaces:
Sleeping
Sleeping
Download export_trained_model.py from AntOG96/getaround-api: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/AntOG96/getaround-api/resolve/main/export_trained_model.py
- Command line
-
hf download hf://spaces/AntOG96/getaround-api/export_trained_model.py
-
curl -L -o export_trained_model.py https://huggingface.co/spaces/AntOG96/getaround-api/resolve/main/export_trained_model.py
413 Bytes
| import shutil | |
| # Chemin complet du modèle que tu veux exporter | |
| source_path = "mlruns/181198585705168272/models/m-ad163c4e6fa94a90ad9d38f10f938577/artifacts" | |
| # Destination où tu veux sauvegarder le modèle “en dur” | |
| destination_path = "./exported_model" | |
| # Copie tout le dossier | |
| shutil.copytree(source_path, destination_path, dirs_exist_ok=True) | |
| print(f"✅ Modèle exporté en dur dans {destination_path}") |