Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offline Menu Translator 🍜

A simple Flutter application that demonstrates the power of on-device, offline, multimodal AI using the flutter_gemma package. This app can translate a Japanese menu from an image, even without an internet connection.

This project was built as a proof-of-concept for my Medium article, which details the entire journey and implementation. Using Gemma for Flutter apps: First steps with on-device AI in Flutter using flutter_gemma package

✨ Features

  • Offline First: The entire AI interaction happens on-device, with no internet connection required.
  • Multimodal Input: Understands both images and text prompts in a single query.
  • Powered by Gemma 3N: Utilizes Google's lightweight and powerful Gemma 3 Nano model.
  • Simple, Single-Screen UI: A minimal, easy-to-understand chat interface.

Menu translator flow

🚀 Getting Started

To run this project locally, follow these steps:

Add Your Hugging Face Token: You will need a Hugging Face access token to download the Gemma model. Open lib/data/gemma_downloader_datasource.dart and replace the placeholder with your own token:

const String accessToken = 'YOUR_HUGGING_FACE_TOKEN_HERE';

🛠️ Tech Stack

Flutter: The UI toolkit for building the application.

  • flutter_gemma: The core package for running Gemma models on-device.
  • image_picker: For selecting images from the camera or gallery.

Any contributions is welcomed! 🙏

About

Flutter app demonstrating on-device AI with Gemma 3N

Topics

Resources

Stars

25 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.