|
Download docs/setup.md from Pujan-Dev/AI_API: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/Pujan-Dev/AI_API/resolve/main/docs/setup.md
- Command line
-
hf download hf://spaces/Pujan-Dev/AI_API/docs/setup.md
-
curl -L -o setup.md https://huggingface.co/spaces/Pujan-Dev/AI_API/resolve/main/docs/setup.md
408 Bytes
| # Setup & Installation | |
| ## 1. Clone the Repository | |
| ```bash | |
| git clone https://github.com/cyberalertnepal/aiapi | |
| cd aiapi | |
| ``` | |
| ## 2. Install Dependencies | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| ## 3. Configure Environment | |
| Create a `.env` file: | |
| ```env | |
| SECRET_TOKEN=your_secret_token_here | |
| ``` | |
| ## 4. Run the API | |
| ```bash | |
| uvicorn app:app --host 0.0.0.0 --port 8000 | |
| ``` | |
| [🔙 Back to Main README](../README.md) | |