CoolFace
Apppublic

krishnakapoor/ai-codemate-brain

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

Deploying Your Free AI Brain

This directory contains the configuration to run Qwen 2.5 Coder 1.5B on Hugging Face Spaces for free.

1. Create a Hugging Face Space

  1. 1.Go to huggingface.co/spaces.
  2. 2.Click Create new Space.
  3. 3.Name: ai-codemate-brain (or similar).
  4. 4.License: MIT.
  5. 5.SDK: Select Docker (Blank).
  6. 6.Hardware: Keep Default (Free: 2 vCPU, 16GB RAM).
  7. 7.Click Create Space.

2. Deploy the Model

You have two options to deploy the code:

Option A: Upload Files Directly (Easiest)

  1. 1.In your new Space, go to the Files tab.
  2. 2.Click Add file -> Upload files.
  3. 3.Drag and drop the Dockerfile from this folder.
  4. 4.Click Commit changes to main.
  5. 5.Wait for the "Building" status to finish (this will take a few minutes as it downloads the 2GB model).
  6. 6.Once "Running", your API URL will be: https://HUGGINGFACE-USERNAME-SPACE-NAME.hf.space

Option B: Push via Git

  1. 1.Clone the repository shown in your Space.
  2. 2.Copy this Dockerfile into it.
  3. 3.git add Dockerfile
  4. 4.git commit -m "Add Llama 3.2"
  5. 5.git push

3. Connect Your App

  1. 1.Copy your Space's URL (e.g., https://username-ai-codemate.hf.space).
  2. 2.Open your project's .env file.
  3. 3.Add or update:
bash
    AI_SERVICE_URL=https://username-ai-codemate.hf.space