CoolFace
Apppublic

aashu1707/brainrot

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

๐ŸŽฌ Viral Brainrot Video Generator

A free-first Python + Gradio + FFmpeg viral video tool built on the original working app.

Cost labels

  • โ€”โœ… FREE: Works without paid APIs.
  • โ€”โš ๏ธ OPTIONAL API: Works free, but can improve with HuggingFace/OpenAI/ElevenLabs keys.
  • โ€”๐Ÿ”ด API REQUIRED: Must use an API. Current app avoids API-required core features.

Features

Phase 1 โ€” โœ… FREE

  • โ€”Content presets: Horror Story, Reddit Confession, Finance Explainer, History Mystery, Hinglish Drama, Meme Debate.
  • โ€”Visual styles: Brainrot Blast, Dark Cinematic, Warm Storytime, Horror Whisper, Minimal Documentary.
  • โ€”Script quality checker: hook, generic phrase, sentence length, emotional-word warnings.
  • โ€”Template-based idea generator: script outline, thumbnail idea, background idea, caption tone.
  • โ€”Export bundle: MP4 + subtitles.srt + script.txt + thumbnail.png.

Phase 2 โ€” โš ๏ธ OPTIONAL API

  • โ€”API settings panel for HuggingFace, Gemini, OpenAI, ElevenLabs.
  • โ€”Thumbnail generator:
  • โ€”โœ… FREE fallback: static PIL thumbnail.
  • โ€”โš ๏ธ Better with API: HuggingFace/OpenAI image generation.
  • โ€”Background provider hook:
  • โ€”โœ… FREE fallback: local stock videos in assets/footage/.
  • โ€”โš ๏ธ Better with API: HuggingFace hook kept in media_providers.py.
  • โ€”Advanced TTS provider hook:
  • โ€”โœ… FREE fallback: existing TikTok/gTTS/Edge flow.
  • โ€”โš ๏ธ Better with API: ElevenLabs hook in media_providers.py.

Phase 3 โ€” โœ… FREE first

  • โ€”Static/optional thumbnail intro clip.
  • โ€”Bigger upgraded captions with word-marker style for selected visual styles.
  • โ€”Basic beat emphasis every 2โ€“3 seconds, no complex audio analysis.

Phase 4 โ€” โœ… FREE / โš ๏ธ OPTIONAL API

  • โ€”Project save/load as JSON.
  • โ€”Template gallery for presets and styles.
  • โ€”Batch-generation guardrail: one video free, API-assisted variations suggested.
  • โ€”Partial regeneration: thumbnail-only regeneration with free/API fallback.

Setup

bash
pip install -r requirements.txt
python app.py

Open the local Gradio URL shown in the terminal, usually http://127.0.0.1:7860.

Assets

  • โ€”Background videos: assets/footage/
  • โ€”Background music: assets/music/
  • โ€”Character images: assets/characters/

This package includes a generated free sample background video so the app can run immediately. Replace it with real gameplay/background footage for production.

Script format

text
NARRATOR: Here's the truth about sleep.
Alex: Wait, what do you mean?
NARRATOR: Most people don't understand it.
Alex: That's wild!

Emotion tags still work:

text
NARRATOR [excited]: This secret changes everything!
Alex [question]: Wait, are you serious?

API notes

The app works without API keys. Optional keys can be pasted into the API Settings accordion at runtime.

Allowed optional APIs:

  • โ€”HuggingFace
  • โ€”Google Gemini connection slot
  • โ€”OpenAI
  • โ€”ElevenLabs

No core render path depends fully on a paid API. Sensible. Almost suspiciously sensible.