Sign inSign up

lgxz/aipython

By lgxz

•Updated over 1 year ago

Python use - AI Python

Image
Machine learning & AI
0

2.7K

lgxz/aipython repository overview

⁠Usage

⁠Install a Docker runtime

I highly recommend OrbStack

⁠Create a config file like this:

  1. Create aipython.toml:
[llm.deepseek]
api_key = "Your deepseek API Key"

⁠Make a work/ directory

mkdir work

AIPython will read/write files in this directory

⁠Run

run.sh:

#!/bin/bash

DOCKER="docker run -v $(pwd)/aipython.toml:/app/aipython.toml -v $(pwd)/work:/app/work"

if [ "$1" = "--ttyd" ]; then
    ${DOCKER} -d --name aipython-ttyd -p 8080:80 lgxz/aipython:latest --ttyd
else
    ${DOCKER} -it --rm --name aipython lgxz/aipython:latest
fi

⁠Fun

>>> ai("Show me the latest news in Reddit r/news")

Tag summary

Content type

Image

Digest

sha256:07b3e0a61…

Size

138.3 MB

Last updated

over 1 year ago

docker pull lgxz/aipython