humanizer_model / train.py
lucidmorto's picture
feat: Add text humanization model training and interface
1375ad0
raw
history blame
385 Bytes
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")
)