Skip to content

Generate blog articles from video or audio using Groq, Whisper, and Llama3

License

Notifications You must be signed in to change notification settings

groq/blogwizard

Repository files navigation


Generate Organizes Notes with BlogWizard

BlogWizard: Generate blog articles from video or audio
using Groq, Whisper, and Llama3

OverviewFeaturesQuickstartContributing


BlogWizardDemo.mp4

Demo of BlogWizard fast transcription of audio and generation of structured blog.

Overview

BlogWizard is a streamlit app that scaffolds the creation of blogs by iteratively structuring and generating blogs from transcribed audio lectures using Groq's Whisper API. The app mixes Llama3-8b and Llama3-70b, utilizing the larger model for generating the blog structure and the faster of the two for creating the content.

Features

  • 🎧 Generate a structured blog using transcribed audio by Whisper-large and text by Llama3
  • ⚡ Lightning fast speed transcribing audio and generating text using Groq
  • 📖 Scaffolded prompting strategically switches between Llama3-70b and Llama3-8b to balance speed and quality
  • 🖊️ Markdown styling creates aesthetic blog posts on the streamlit app that can include tables and code
  • 📂 Allows user to download a text or PDF file with the entire blog contents

Quickstart

Important

To use BlogWizard, you can use a hosted version at https://blogwizard.groqlabs.com/. Alternatively, you can run BlogWizard locally with Streamlit using the quickstart instructions.

Run locally:

Alternative, you can run BlogWizard locally with streamlit.

Step 1

First, you can set your Groq API key in the environment variables:

export GROQ_API_KEY="gsk_yA..."

This is an optional step that allows you to skip setting the Groq API key later in the streamlit app.

Step 2

Next, you can set up a virtual environment and install the dependencies.

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

Step 3

Finally, you can run the streamlit app.

python3 -m streamlit run main.py

Details

Technologies

  • Streamlit
  • Llama3 on Groq Cloud
  • Whisper-large on Groq Cloud
  • PyDub to take the first
  • It is recommented to use python3.12

Limitations

Audio files greater than 25mb or YouTube videos longer than 19 minutes will be trimmed down to those thresholds amounts listed and then summarized.

BlogWizard may generate inaccurate information or placeholder content. It should be used to generate notes for entertainment purposes only.

Contributing

Improvements through PRs are welcome!

Adapted from ScribeWizard by Ben Klieger

About

Generate blog articles from video or audio using Groq, Whisper, and Llama3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published