harithkavish's picture
Finalize project structure, update URLs, and clean up for deployment
8acc7cf
raw
history blame contribute delete
553 Bytes
# Upload only TensorFlow.js model files to Hugging Face Hub
# Usage: python scripts/upload_tfjs_to_hub.py
from huggingface_hub import HfApi
REPO_ID = "harithkavish/SkinNet-Analyzer" # Your model repo
TFJS_MODEL_DIR = "tfjs_model" # Path to your tfjs_model directory (containing model.json)
api = HfApi()
api.upload_folder(
folder_path=TFJS_MODEL_DIR,
repo_id=REPO_ID,
repo_type="model",
path_in_repo="tfjs_model"
)
print(f"Uploaded TensorFlow.js model files from '{TFJS_MODEL_DIR}' to '{REPO_ID}/tfjs_model/' on Hugging Face Hub.")