A Simple Python Tkinter-based Ollama GUI with no external dependencies

Hello everyone, I would like to share with you ollama-gui – a lightweight, Tkinter-based python GUI for the Ollama.

Overview

The project is very simple, with no other dependencies, and can be run in a single file.

It can serve as a first GUI page for beginners, without the need for Docker, VM or other dependencies, just Python (if not using the binary).

Features

  • One file project.
  • No external dependencies, only tkinter which is usually bundled.
  • Auto check ollama model list.
  • Customizable ollama host support.
  • Multiple conversations.
  • Menu bar and right-click menu.
  • ️ Model Management: Download and Delete Models
  • UI Enhancement: Bubble dialog theme
  • Editable Conversation History

Run

Choose any way you like:

source code

python ollama_gui.py
python ollama_gui.py
python ollama_gui.py

Enter fullscreen mode Exit fullscreen mode

using pip

pip install ollama-gui
ollama-gui # or python -m ollama_gui
pip install ollama-gui
ollama-gui # or python -m ollama_gui
pip install ollama-gui ollama-gui # or python -m ollama_gui

Enter fullscreen mode Exit fullscreen mode

binary file

I have provided some Windows, Mac, and Linux binaries for convenient direct use, could be downloaded from the GitHub release page.

Motivation

While looking for a UI interface for Ollama to experiment with large models locally, I found that many had heavy installation dependencies. Since I don’t have particularly high requirements for the interface and UI, I decided to write an extremely minimalist UI using Python.

The project home is at https://github.com/chyok/ollama-gui

I would be most appreciative if anyone were interested, and also be tremendously grateful for any feedback or suggestions that anyone may have to offer.

Thanks,
chyok

原文链接:A Simple Python Tkinter-based Ollama GUI with no external dependencies

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
When you procrastinate, you become a slave to yesterday.
拖延会让你成为昨天的奴隶
评论 抢沙发

请登录后发表评论

    暂无评论内容