BackendServer / README.md
Codegeass321's picture
HF Spaces
147d161
|
raw
history blame
750 Bytes
---
title: ChatDocxAI
emoji: πŸ“„
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 4.19.2
app_file: app.py
pinned: false
---
# Backend (FastAPI)
## Structure
- `api.py` β€” Main FastAPI app
- `utils.py` β€” Helper functions
- `requirements.txt` β€” Python dependencies
- `.env.example` β€” Example environment variables
## Running Locally
```sh
pip install -r requirements.txt
uvicorn api:app --reload --host 0.0.0.0 --port 8000
```
## Deploying to Render
- Push this folder to a GitHub repo
- Use the following start command on Render:
```
uvicorn api:app --host 0.0.0.0 --port 10000
```
- Add your environment variables in the Render dashboard
---
**Do not commit your real `.env` file! Use `.env.example` for reference.**
---