French-Coach / README.md
Asma-F's picture
Add hackathon track/sponsor/achievement tags, remove blank line in tags block
5cbccc7 verified
|
Raw
History Blame Contribute Delete
3.77 kB

A newer version of the Gradio SDK is available: 6.20.0

Upgrade
metadata
title: French Coach
emoji: πŸ—Ό
colorFrom: indigo
colorTo: yellow
sdk: gradio
sdk_version: 6.17.3
app_file: app_custom.py
pinned: true
license: apache-2.0
tags:
  - build-small-hackathon
  - backyard-ai
  - best-minicpm-build
  - off-brand
  - best-agent
  - best-demo
  - bonus-quest-champion
  - track:backyard
  - sponsor:openbmb
  - achievement:offgrid
  - achievement:offbrand
  - achievement:fieldnotes

πŸ‡«πŸ‡· French Coach

A living French notebook that turns your class notes into practice β€” built for a real person studying for Canada's TEF/TCF exams.

French Coach is a Backyard-AI study tutor for an adult learning French on a four-month timeline for Canadian immigration (target CLB/NCLC 7). It collapses the usual mess of class notes plus three browser tabs (translate / pronounce / gender-check) into one surface β€” and adds practice the learner can't get between classes.

It runs on self-hosted MiniCPM models β€” nothing leaves the Space.

What it does

  • Smart notebook. Write or paste class notes. Nouns are colored by gender at a glance; click any word for its meaning, gender, and a one-line grammar note, with pronunciation on tap. Saved pages are auto-titled and categorized by a curator pass.
  • The Coach Agent. The core feature. From the current lesson it produces a set of 5–7 mixed exercises (fill-in-the-blank, multiple choice, error detection, reorder, translation) through a plan β†’ generate β†’ critique β†’ revise loop β€” a small multi-step agent that grounds each set in the lesson and the official A1–A2 CEFR syllabus, then reviews its own output for a single unambiguous answer before showing it. It's not a one-shot prompt; it checks and fixes its own work.
  • Visual exercises. MiniCPM-V reads an image and the app generates French comprehension questions grounded in what's actually in it.
  • Chat coach, dialogue, and pronunciation practice, all grounded in the lesson.
  • Encouraging by design. Points are additive only β€” never deducted, never tied to correctness. The daily summary leads with gains and frames gaps as "ready to practice next." No streaks to lose, no red error states, no shaming. Ever.

How it's built

  • Models (all under the 32B cap, self-hosted on ZeroGPU):
    • MiniCPM4.1-8B-Instruct β€” text reasoning: the Coach Agent, chat, word cards, grammar tools, summaries.
    • MiniCPM-V 4.6 (~1.3B) β€” vision: reads images for the visual exercises.
  • Custom UI built with gr.Server + a React frontend served through the Gradio app β€” past the default Gradio look (Off-Brand).
  • Gradio SDK Space under the build-small-hackathon org.
  • Supabase (hosted Postgres) for persistence: notebook pages, exercises, and an append-only points ledger.
  • Deterministic French NLP (gender / part-of-speech / lemma) via spaCy runs instantly, offline; only meaning, grammar, exercises, and dialogue hit the LLM.

Why it's more than a chatbot wrapper

The gender-mapped notebook, the image-grounded visual exercises, and above all the Coach Agent's self-critique loop make this a tool that reasons in multiple steps, not a single LLM call behind a text box.

Links