nse-lstm-model / UPLOAD_INSTRUCTIONS.md
thoutam's picture
Upload folder using huggingface_hub
20dcc05 verified

Hugging Face Upload Instructions

Step 1: Install Hugging Face Hub

pip install huggingface_hub

Step 2: Login to Hugging Face

huggingface-cli login

Step 3: Create Repository

huggingface-cli repo create nse-lstm-model --type model

Step 4: Upload Files

cd nse-lstm-model-hf
git init
git add .
git commit -m "Initial commit: NSE LSTM Model"
git branch -M main
git remote add origin https://huggingface.co/YOUR_USERNAME/nse-lstm-model
git push -u origin main

Alternative: Use Python API

from huggingface_hub import HfApi

api = HfApi()
api.upload_folder(
    folder_path="./nse-lstm-model-hf",
    repo_id="YOUR_USERNAME/nse-lstm-model",
    repo_type="model"
)

Step 5: Verify Upload

Visit: https://huggingface.co/YOUR_USERNAME/nse-lstm-model

Important Notes:

  • Replace YOUR_USERNAME with your actual Hugging Face username
  • Make sure you're logged in before uploading
  • The repository will be public by default
  • You can make it private in the repository settings if needed