autoform-backend / README.md
Arslan1997's picture
added responses chat
b1c6f23
|
Raw
History Blame Contribute Delete
861 Bytes
metadata
title: AutoForm Backend
emoji: 📝
colorFrom: purple
colorTo: indigo
sdk: docker
pinned: false

AutoForm Backend

FastAPI backend for AutoForm - AI-powered form builder.

Local Development

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

Environment Variables

Create a .env file in the backend/ directory:

DEFAULT_MODEL=openai/gpt-4o-mini
OPENAI_API_KEY=your_key_here
DATABASE_URL=sqlite:///./app.db
JWT_SECRET=your-secret-key
FRONTEND_URL=http://localhost:5173
SESSION_SECRET=your-session-secret

API Documentation

Once running, visit:

DeploymentSee DEPLOY_HF.md for instructions on deploying to Hugging Face Spaces.