CoolFace
Apppublic

arnabkar101/dotsocr-space

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

Local Development Setup (Python 3.12)

  1. 1.Ensure Python 3.12 is available (pyenv install 3.12.5 or via system package manager).
  2. 2.Create a virtualenv: python3.12 -m venv .venv && source .venv/bin/activate.
  3. 3.Upgrade packaging tools: pip install --upgrade pip wheel setuptools.
  4. 4.Install dependencies: pip install -r requirements.txt.
  5. 5.(Optional) Authenticate with Hugging Face if you plan to call gated models: huggingface-cli login.
  6. 6.Run locally: python app.py and open the printed Gradio URL.

Push to a New Hugging Face Space

  1. 1.Log in: huggingface-cli login (stores your token locally).
  2. 2.Create a Space (replace YOUR_USER):
python
   from huggingface_hub import HfApi
   api = HfApi()
   api.create_repo("YOUR_USER/dotsocr-space", repo_type="space", space_sdk="gradio")
  1. 1.Upload this folder:
python
   api.upload_folder(
       repo_id="YOUR_USER/dotsocr-space",
       repo_type="space",
       folder_path="space_app"
   )
  1. 1.In the Space settings UI, confirm hardware = Nvidia A10G - Small and Python = 3.12.
  2. 2.Restart the Space and monitor the build logs; once green, test via the Space URL.