A lightweight and modern Ollama Flask server template, perfect for building RESTful APIs and web applications that require prompting to LLMs.
- Clean project structure
- Ready for API development
- Easy to extend and customize
- Clone the repository:
git clone https://github.com/yourusername/flask-template.git
cd flask-template
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Run the development server:
python run.py
The server will start at http://localhost:5000
This project is licensed under the MIT License - see the LICENSE file for details.