Pocket Grass: Gemma finishes one sentence, then the phone goes away
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass The card is supposed to be the short part. I kept asking a small open model to write the whole outing, and it kept handing me more screen. What I built Pocket Grass is a page for the minute before you go outside. You choose 10, 20, or 40 minutes, a place to start (sidewalk, park, balcony, garden, or trail),…
Pocket Grass is a web app designed to encourage users to appreciate their surroundings before stepping outside. It prompts users to select a duration (10, 20, or 40 minutes), a location (sidewalk, park, balcony, garden, trail), and what they wish to notice first. If a city is mentioned, Open-Meteo provides the current weather conditions, such as sky, temperature, and wind. However, the app does not rely on any weather API key.
Once the user selects their preferences, Gemma, an open model, finishes one sentence about what the user is going to notice. This sentence is displayed on the app, and the user is instructed to stay put, observing the designated element for their chosen duration. The app is designed to work offline, meaning no network connection is required after the initial download.
The model's limitation is that it only finishes a sentence, leaving the user to continue the observation. This limitation prevents the model from writing complete paragraphs, ensuring that the user remains engaged in the activity. The app has two screens: one for the user to input their preferences and another that displays the sentence Gemma has generated. After the timer ends, the user can save the sentence on their device.
The app has been tested for different scenarios, including night-time, rainy conditions, or when the user requests specific elements like birds or quiet. Gemma's sentence starts with a sound cue relevant to the user's chosen scenario. If the sentence repeats the prompt or introduces a number, it is discarded and re-generated. The app also includes a practice timer to allow users to see the end result without pretending they have gone outside.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.