File size: 774 Bytes
9f1e4a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import os
from huggingface_hub import HfApi
# --- CONFIGURATION ---
REPO_ID = "FinancialReports/jina-v3-financial-classifier"
# "." means "upload the current directory"
LOCAL_FOLDER = "."
def main():
print(f"🚀 Starting upload to {REPO_ID}...")
api = HfApi()
# Upload everything in the current folder
api.upload_folder(
folder_path=LOCAL_FOLDER,
repo_id=REPO_ID,
repo_type="model",
commit_message="Final Release: Hybrid Jina-XGBoost Model",
ignore_patterns=["upload_to_hf.py", ".git", ".gitattributes"] # Don't upload the script itself or git files
)
print("✅ Upload Complete! Check your model here:")
print(f"https://huggingface.co/{REPO_ID}")
if __name__ == "__main__":
main()
|