File size: 385 Bytes
1375ad0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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")
)