Spaces:
Runtime error
Runtime error
|
Download QUICKSTART.md from Gradii/DetectMeBotBackend: direct link, hf CLI and curl.
- Browser
- Download file 803 Bytes
-
https://huggingface.co/spaces/Gradii/DetectMeBotBackend/resolve/f37d8157ba7da7facb72a4a3fd6049c4b82ae708/QUICKSTART.md
- Command line
-
hf download hf://spaces/Gradii/DetectMeBotBackend@f37d8157ba7da7facb72a4a3fd6049c4b82ae708/QUICKSTART.md
-
curl -L -o QUICKSTART.md https://huggingface.co/spaces/Gradii/DetectMeBotBackend/resolve/f37d8157ba7da7facb72a4a3fd6049c4b82ae708/QUICKSTART.md
803 Bytes
| # Quick Reference Guide | |
| ## 🚀 Starting the Backend | |
| ### First Time Setup (Windows) | |
| ```powershell | |
| cd backend | |
| python setup.py | |
| venv\Scripts\activate | |
| python main.py | |
| ``` | |
| ### First Time Setup (macOS/Linux) | |
| ```bash | |
| cd backend | |
| python setup.py | |
| source venv/bin/activate | |
| python main.py | |
| or | |
| "uvicorn app:app --reload --host 127.0.0.1 --port 8000" | |
| "uvicorn app:app --host 127.0.0.1 --port 8000" | |
| ``` | |
| ### Subsequent Times | |
| ```bash | |
| cd backend | |
| run.bat | |
| ``` | |
| ## 📡 API Quick Test | |
| ### Health Check | |
| ```bash | |
| curl http://localhost:8000/ | |
| ``` | |
| ### Analyze a File | |
| ```bash | |
| curl -X POST http://localhost:8000/analyze \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"file_url": "https://example.com/video.mp4"}' | |
| ``` | |
| ### Documentation | |
| - **Swagger UI**: http://localhost:8000/docs | |
| - **ReDoc**: http://localhost:8000/redoc | |