CoolFace
Apppublic

mrowaisabdullah/ai-humanoid-robotics

sourceHugging Facemitupdated 9mo agoView on Hugging Face
0likes
App README

AI Book Backend

FastAPI backend for the AI Humanoid Robotics book application.

Features

  • —Authentication: JWT-based auth with email/password and OAuth (Google)
  • —Chat: RAG-powered chat with document retrieval and streaming responses
  • —Translation: Multi-language translation using OpenAI and Gemini models
  • —Personalization: User preferences and background for personalized content

API Endpoints

Once running:

  • —Health Check: /health
  • —API Docs: /docs (Swagger UI)
  • —Authentication: /api/v1/auth/*
  • —Chat: /api/chat/*
  • —Translation: /api/translate

Environment Variables

Required secrets (set in Space Settings):

  • —JWT_SECRET_KEY - Required for authentication
  • —DATABASE_URL - SQLite (default) or PostgreSQL
  • —ALLOWED_ORIGINS - CORS allowed origins

See .env.hf-template for full configuration options.

Deployment Notes

  • —HuggingFace Space auto-rebuilds on push to main branch
  • —CORS origins are configured via ALLOWED_ORIGINS environment variable
  • —Backend runs on port 7860 (HF Spaces default)

License

MIT