Python Docker Model is a Streamlit application for running configurable query workflows against local models exposed by Docker Model Runner. Workflows can pass input directly to output or send it through a selected model while the interface presents each stage as a numbered status card.
- Hosted demo: Open Python Docker Model on Streamlit Community Cloud.
- Hosted model inference is unavailable because Streamlit Community Cloud cannot access Docker Model Runner. Run the project locally with Docker Desktop and Docker Model Runner to use model-backed workflows.
- Local development server: http://localhost:8501 after following the setup and run instructions below.
The application requires Windows, Python 3.10 or newer, Docker Desktop with Docker Model Runner enabled, and at least one locally available model. Repository-level guidance and specifications stay at the root; all buildable application files live in Python/.
- From the repository root, pull or confirm a Docker model:
docker model pull ai/smollm2 docker model list - Change to the buildable project root with
cd Python. - Run
.\setup.batto create or updatePython/.venvand install the required packages.
- From
Python/, run.\run.bat. - Open http://localhost:8501.
- Run
.\run.batagain at any time to reuse the existing listener. The launcher runs Streamlit in the background without leaving a persistent command window and writes logs toPython/.run/. - To run in the foreground instead, use
.\.venv\Scripts\python.exe -m streamlit run main.pyfromPython/.
- From
Python/, run.\.venv\Scripts\python.exe -m unittest discover -s tests -p "test*.py". - Create an annotated version tag with
git tag -a vX.Y.Z -m "Release vX.Y.Z". - Push the tag with
git push origin vX.Y.Z, then create the corresponding GitHub release.
Workflows are declared in Python/src/Workflows/workflow.json. Workflow 1 passes the query directly to output, while Workflow 2 sends the query through the selected Docker model first. Changing the model or workflow resets the current run.
Python/main.pyprovides the Streamlit entry point.Python/src/Workflows/contains workflow configuration, loading, and step implementations.Python/src/ui/contains the application shell and workflow step-card interface.Python/src/llm/contains the Docker Model Runner adapter.Python/tests/contains the automated test suite.documentation/contains README images and supporting project documentation.
AGENTS.mdcontains repository-specific AI agent guidance..codex/project-identity.mdrecords the repository and buildable project boundaries.- openspec contains the repository's specification workflow configuration and change artifacts.
.agents/skills/contains project-local OpenSpec skills.
- Streamlit provides the application interface and session state.
- Docker Model Runner provides local model discovery and inference through the Docker CLI.
- Python's built-in
unittestframework provides the automated test runner.
- Samuel Asher Rivello - Over 25 years of game development XP (2026)
- LinkedIn.com/in/SamuelAsherRivello ⭐
- GitHub.com/SamuelAsherRivello
- Twitter.com/srivello
- Resume / Portfolio: SamuelAsherRivello.com
- Provided as-is under the MIT License.
- Copyright © 2026 Samuel Asher Rivello.
