Home / use case

Offline menu description writer for small restaurants with Gemma 3 4B

At a glance
Hardware
A normal laptop, offline once the model is downloaded
Models & engines
Gemma 3 4B (gemma3:4b) running locally through Ollama
Key gotcha
The 4B model's Tamil was unreliable: one Idli result was meaningless text and another mixed in broken transliteration

What they built

Many small restaurants and tea shops in Batticaloa list only a dish name and a price, so visitors may not know what the food is. Writing descriptions takes time or money, and cloud AI tools would mean sending the shop's menu and prices to a server the owner doesn't control.

The author built a small Python and Streamlit app for those owners. They enter the dish name in English and Tamil, add a note such as "spicy, fresh crab", and click one button; Gemma 3 4B running locally through Ollama writes a short, appetizing English description on an ordinary laptop with no internet access.

It is a working prototype tested on dishes like Chettinad Chicken, Idli and Filter Coffee, built for the Hacktoberfest Open-Source AI Challenge. The author has not yet tested it with a real shop owner.

Setup

  • Gemma 3 4B (gemma3:4b) running locally through Ollama
  • Python with Streamlit for a one-button page
  • A normal laptop, offline once the model is downloaded

How it works

  1. The prompt asks for one appetizing English description, two sentences at most, with no extra text.
  2. The model is set in one line of code, so other open models (Llama, Qwen) can be swapped in.

Results & numbers

  • A description in about 20 seconds per dish
  • Good English output from the 4B model

Gotchas

  • The 4B model's Tamil was unreliable: one Idli result was meaningless text and another mixed in broken transliteration
  • Design fix: the owner types the Tamil name and the model writes only the English description
“A small model has limits, and designing around them made the product more honest and useful.”— ajaypraneeth15

Do it yourself

  1. Install Ollama and run ollama pull gemma3:4b
  2. pip install ollama streamlit
  3. python -m streamlit run app.py
  4. Enter the dish name in English and Tamil plus a short note, then generate
ollama pull gemma3:4b
pip install ollama streamlit
python -m streamlit run app.py
Source: ajaypraneeth15 (DEV Community) · Published 2026-10-16 · Added 2026-10-19. This write-up summarizes the original source; see it for full details.

Similar setups

Constraint Kitchen: a Gemma 3 1B DIY idea generator that refuses rather than lies

Shashwat Sinha built a local app that turns household junk into DIY project ideas and build guides with gemma3:1b on an 8 GB M3 Mac, and checks every answer in Python so it refuses when the model breaks your constraints.

Shashwat Sinha (DEV Community) · 2026-10-23

ShelfReady: a private Amazon KDP listing studio running Gemma 3 4B on a CPU

A designer and colouring-book publisher built ShelfReady to draft Amazon KDP titles, keywords and descriptions with Gemma 3 4B in Ollama, then check every field against KDP's rules in code, on an ordinary 8-core CPU with no GPU.

Cody Topp (DEV Community) · 2026-10-21

Ghost in the Machine: a fake 1998 terminal where a local Gemma 3 whispers back at every command

A Hacktoberfest entry in a single HTML file: you type into a simulated old shell and a presence called the tenant answers each command with one eerie line, streamed from Gemma 3 4B on Ollama.

grkadam7 (DEV Community) · 2026-11-04

Haunted Haiku: a local Gemma 3 poet that also designs the card

E. Smith built a small Dash app where a local Gemma 3 in Ollama writes an eerie haiku and picks its colours and emoji in one JSON reply, so the poem and its picture work with Wi-Fi off.

E. Smith (DEV Community) · 2026-10-30