Spaces:
Running
Running
File size: 1,034 Bytes
3ca686a 6f034a7 3ca686a 6f034a7 3ca686a 6f034a7 3ca686a 6f034a7 3ca686a ab2a904 6f034a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# π FastAPI AI Detector
A production-ready FastAPI app for detecting AI vs. human-written text in English and Nepali. It uses GPT-2 and SentencePiece-based models, with Bearer token security.
## π Documentation
- [Project Structure](docs/structure.md)
- [API Endpoints](docs/api_endpoints.md)
- [Setup & Installation](docs/setup.md)
- [Deployment](docs/deployment.md)
- [Security](docs/security.md)
- [NestJS Integration](docs/nestjs_integration.md)
- [Core Functions](docs/functions.md)
## β‘ Quick Start
```bash
uvicorn app:app --host 0.0.0.0 --port 8000
```
## π Deployment
- **Local**: Use `uvicorn` as above.
- **Railway/Heroku**: Use the provided `Procfile`.
- **Hugging Face Spaces**: Use the `Dockerfile` for container deployment.
---
## π‘ Tips
- **Model files auto-download at first start** if not found.
- **Keep `requirements.txt` up-to-date** after adding dependencies.
- **All endpoints require the correct `Authorization` header**.
- **For security**: Avoid committing `.env` to public repos.
---
|