Spaces:
Runtime error
Runtime error
| import os | |
| from huggingface_hub import HfApi | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| # Run the training script | |
| os.system("python humanizer.py") | |
| # Push the changes to the main branch | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path=".", | |
| repo_id="umutbozdag/humanizer_model", | |
| repo_type="space", | |
| commit_message="Update after training", | |
| token=os.getenv("HF_TOKEN") | |
| ) |