DEV Community

Piyush Annigeri
Piyush Annigeri

Posted on

FanFlame — The Passion Companion for World Cup Fans (Weekend Challenge: Passion Edition)

This is a submission for Weekend Challenge: Passion Edition

What I Built

FanFlame is a passion companion for World Cup fans, built with Streamlit
and the Gemini API. It turns the raw emotion of football fandom into
three interactive experiences:

  • 🎤 Passion Pledge — generate a personal hype speech for your team, in a tone of your choice, optionally woven with your own memory of falling in love with the game.
  • 🏆 Rivalry Trivia — pick two rival teams and instantly get a 5-question trivia quiz about their shared football history, legendary players, and iconic World Cup moments.
  • 📊 Passion Meter — paste any fan chat message, tweet, or comment and get a 0–100 "passion score," a mood label, and a fun fan archetype.

What inspired this project

This weekend's prompt asked us to build something inspired by passion, and
with the World Cup happening right now, it felt obvious: passion for football
is one of the purest, loudest forms of passion there is. Rivalries, devotion,
36-year droughts, last-minute goals — it's all there. I wanted to build
something that didn't just talk about that passion, but let fans generate
and measure it themselves.

Demo

demo gif

Code

🔥 FanFlame — The Passion Companion for World Cup Fans

Built for the DEV Weekend Challenge: Passion Edition (July 2026).

FanFlame is a Streamlit app powered by the Gemini API that helps World Cup fans express and explore their passion for the game in three ways:

  1. 🎤 Passion Pledge — generates a personalized hype speech for your team in your chosen tone, optionally woven with a personal memory.
  2. 🏆 Rivalry Trivia — instantly builds a 5-question multiple-choice quiz about any two rival teams' football history.
  3. 📊 Passion Meter — scores how much devoted-fan energy is packed into a fan chat message, tweet, or comment, with a fun "fan archetype" label.

Why this fits the theme

The World Cup is the purest expression of football passion — rivalries devotion, heartbreak, and joy all at once. FanFlame turns that passion into something interactive: fans can generate their own hype, test their rivalry…

How I built it

  • Frontend/app: Streamlit, single app.py file with three tabs.
  • AI layer: Google's google-genai Python SDK calling gemini-2.5-flash.
    • The Passion Pledge tab uses free-form text generation with a tuned prompt and temperature for creative, quotable output.
    • The Rivalry Trivia and Passion Meter tabs use Gemini's structured JSON output mode (response_mime_type="application/json") so responses map cleanly onto the UI without brittle string parsing.
  • Styling: custom CSS for a warm, "flame" gradient theme that matches the passion theme.

Prize category

Submitting for Best Use of Google AI — the entire experience is powered
by the Gemini API for generation, trivia creation, and sentiment-style
scoring

Top comments (0)