CoolFace
Apppublic

MuhammadSheraza002/hardware-scanner-api

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

Hardware Inventory Scanner - Backend API

bash
pip install -r requirements.txt
uvicorn main:app --reload --port 8000

Environment Variables

VariableDescription
GROQ_API_KEYYour Groq API key
PORTPort number (set automatically by Railway)

API Endpoints

  • POST /api/start-session - Start new scanning session
  • POST /api/process-image - Process image with AI
  • GET /api/session/{id} - Get session data
  • GET /api/export/{id} - Download Excel export
  • DELETE /api/session/{id} - End session

Deploy to Railway

  1. 1.Push this folder to GitHub
  2. 2.Create new project on Railway
  3. 3.Connect your GitHub repo
  4. 4.Set root directory to /backend
  5. 5.Add environment variable: GROQ_API_KEY
  6. 6.Deploy!