genaipy

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 2

README

genaipy

Local backend python implementations for github.com/maruel/genai.

Manual testing the python servers

These scripts are embedded in the main executable and are run when model "python" is requested.

These scripts can be run stand alone, e.g. to run the Stable Diffusion image generator on a separate machine, or to customize the image generation.

Image Generation
macOS or linux
./setup.sh
source venv/bin/activate
./image_gen.py --host 0.0.0.0 --port 8032
Windows
setup.bat
venv\Scripts\activate
python image_gen.py --host 0.0.0.0 --port 8032
LLM
macOS or linux
./setup.sh
source venv/bin/activate
./llm.py --host 0.0.0.0 --port 8031
Windows
setup.bat
venv\Scripts\activate
python llm.py --host 0.0.0.0 --port 8031

Documentation

Overview

Package genaipy provides python backends for genai.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	URL string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, script, cacheDir, logName string, extraArgs []string) (*Server, error)

NewServer creates a new python virtualenv if needed and starts the server in it.

func (*Server) Close

func (s *Server) Close() error

func (*Server) Done

func (s *Server) Done() <-chan error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL