Skip to content

cferggie/flask-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Template

A lightweight and modern Ollama Flask server template, perfect for building RESTful APIs and web applications that require prompting to LLMs.

Features

  • Clean project structure
  • Ready for API development
  • Easy to extend and customize

Requirements

  • Ollama - LLM server that needs to be installed locally
  • This application uses the gemma3:12b model

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/flask-template.git
cd flask-template
  1. Install and run Ollama:

    ollama pull gemma3:12b
  2. Create a virtual environment and activate it:

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

Usage

Run the development server:

python main.py

The server will start at http://localhost:5000

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Implementation of a Flask server. Perfect for creating Flask based APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages