🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)
🕵️ SicherheitslückenDefender 0-Day ShieldBreak (CVE-2026-69414) nicht sauber gepatcht - BornCity(11.09.2026 um 12:52 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
⚠️ Malware / Trojaner / VirenVorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf(11.09.2026 um 09:35 Uhr)
🕵️ SicherheitslückenMicrosoft geht endlich eines der nervigsten Probleme von Windows 11 an(11.09.2026 um 11:58 Uhr)
💾 IT Security ToolsSysinternals Suite(11.09.2026 um 12:00 Uhr)
🕵️ SicherheitslückenDefender 0-Day ShieldBreak (CVE-2026-69414) nicht sauber gepatcht - BornCity(11.09.2026 um 12:52 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 3 Min Lesezeit
0

FanaticAI — World Cup Rivalry Obsession Engine (Powered by Google Gemini)

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

This is a submission for


  • Local Run: The frontend dev server runs at http://localhost:5173 and connects to the FastAPI backend gateway running at http://localhost:8888.



  • (See the docs/assets/ directory in our repository for screenshots of the dashboard UI and passion gauge in action).






    Code







    GitHub logo



    FanaticAI: World Cup Rivalry Obsession Engine — DEV Weekend Challenge: Passion Edition entry using Google Gemini API






    FanaticAI — World Cup Rivalry Obsession Engine



    An interactive AI companion for devoted football fans to track sentiment, calculate fan passion index metrics, and simulate sports rivalries using the Google Gemini API.


    Built for the DEV Weekend Challenge: Passion Edition (Best Use of Google AI Category).




    🚀 How It Works





    • Rant Analyzer: Uses Gemini to evaluate sports rant inputs, compute a passion score (0-100), and generate supportive analyst summaries.


    • Rivalry Simulator: Simulates high-emotion commentary of matches with fan loyalty configuration.



    🛠️ Stack





    • AI Platform: Google Gemini 1.5 Flash (google-generativeai SDK)


    • Backend: FastAPI (Python), Uvicorn


    • Frontend: React, TS, Vite, Tailwind CSS v4, Framer Motion




    📂 Repository Layout






    • backend/: FastAPI routers, schemas, and Gemini integration handlers.


    • frontend/: Command Center dashboard with interactive sentiment gauges.


    • docs/: Holds the DEV Community submission templates (dev_submission.md).




    💻 Local Setup & Run





    1. Configure Environment (Backend)










    How I Built It



    The application is built using a modern full-stack developer architecture:





    • Backend: FastAPI (Python) and Uvicorn for fast asynchronous endpoints. We integrated the official Google Generative AI SDK (google-generativeai) to connect to the gemini-1.5-flash model.


    • Frontend: React, Vite, TypeScript, Tailwind CSS v4, and Framer Motion for a premium, responsive, dark-mode neon dashboard.






    🧠 Gemini Prompts & Integration






    1. Structured JSON Passion Score Estimation



    We instruct Gemini to output structured JSON data directly by passing a precise scoring template:




    CODE
    prompt = (
    f"Analyze the following sports fan rant text: '{rant}'. "
    f"Calculate a 'passion_score' representing how obsessed, devoted, and emotional the fan is on a scale from 0 to 100. "
    f"Also write a brief 1-sentence supportive response acknowledging their obsession. "
    f"Return ONLY a clean JSON object with keys: 'passion_score' (integer) and 'response_summary' (string)."
    )






    In the backend services, we configured generation_config={"response_mime_type": "application/json"} to guarantee a clean, parseable JSON block returned to the React frontend.






    2. PERSONA-Biased Commentary Generation



    To capture the real feeling of sports rivalries, we feed Gemini a commentator persona biased towards a specific team:




    CODE
    prompt = (
    f"You are a fanatical, obsessed football commentator who is highly devoted to {bias_team}. "
    f"Generate a brief, emotional, 3-sentence live commentary stream of a hypothetical match "
    f"between {team_a} and {team_b}. Your tone must show absolute passion, bias, and excitement!"
    )









    Prize Categories





    • Best Use of Google AI: The entire system logic is powered by Google Gemini 1.5 Flash to perform structured sentiment scoring and persona-driven creative content generation.

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    1 Quelle
    The Gemini desktop app is now available for Windows
    1 Quelle
    Windows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC
    1 Quelle
    Vorsicht: Android-Malware verschlüsselt Ihre Handys und nimmt heimlich Fotos auf
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten FanaticAI — World Cup Rivalry Obsession Engine (Powered by Google Gemini)

    Thematisch verwandte Begriffe: FanaticAI, World, Rivalry, Obsession · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...