CoolFace
Apppublic

Innovative-Minds12/EZ_Notes

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes
App README

๐Ÿ“š Easy Work - Auto Lecture Notes Generator

Transform your audio lectures into structured, professional notes automatically using AI

Version Python Streamlit


๐ŸŒŸ What is Easy Work?

Easy Work is an AI-powered application that automatically converts your lecture recordings into beautifully structured notes. Simply upload an audio file or record live, and let AI do the heavy lifting!

โœจ Key Features

  • โ€”๐ŸŽค Multi-format Audio Support: MP3, WAV, OGG, M4A, FLAC, WEBM
  • โ€”๐ŸŒ Multi-language: English and Urdu support
  • โ€”๐ŸŽ™๏ธ Live Recording: Record lectures directly in the app
  • โ€”๐Ÿค– AI-Powered Processing: Uses Groq's latest models for transcription and text generation
  • โ€”๐Ÿ“ Structured Output: Get organized notes with sections, summaries, and key points
  • โ€”โ“ Auto-Generated Questions: Study questions with answers for review
  • โ€”๐Ÿ’พ Export Options: Download as PDF or DOCX
  • โ€”๐Ÿ“Š Analytics Dashboard: Track your processing history

๐Ÿš€ How It Works

1. Upload Audio โ†’ 2. Select Language โ†’ 3. Process โ†’ 4. Download Notes

Behind the scenes:

  1. 1.Audio Transcription: Groq's Whisper model converts speech to text
  2. 2.Text Cleaning: AI removes filler words and formats the text
  3. 3.Content Structuring: Llama model organizes content into sections
  4. 4.Question Generation: AI creates study questions based on content
  5. 5.Document Creation: Professional PDF/DOCX files are generated

๐Ÿ“ฆ Installation

Prerequisites

Local Setup

  1. 1.Clone the repository
bash
git clone <your-repo-url>
cd easy-work
  1. 1.Create virtual environment
bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. 1.Install dependencies
bash
pip install -r requirements.txt
  1. 1.Set up environment variables Create a .env file in the root directory:
env
GROQ_API_KEY=your_groq_api_key_here
  1. 1.Run the application
bash
streamlit run app.py

The app will open in your browser at http://localhost:8501


โ˜๏ธ Deploy on Hugging Face Spaces

Step 1: Prepare Your Hugging Face Account

  1. 1.Go to huggingface.co and sign up/login
  2. 2.Navigate to your profile โ†’ Spaces โ†’ Create new Space

Step 2: Create Your Space

  1. 1.Space name: easy-work-notes (or your preferred name)
  2. 2.License: Choose appropriate license (MIT recommended)
  3. 3.Space SDK: Select Streamlit
  4. 4.Space hardware: Start with CPU basic (free tier)
  5. 5.Click Create Space

Step 3: Upload Your Files

You have two options:

Option A: Git (Recommended)

bash
# Clone your space
git clone https://huggingface.co/spaces/YOUR_USERNAME/easy-work-notes
cd easy-work-notes

# Copy all project files
cp -r /path/to/your/project/* .

# Commit and push
git add .
git commit -m "Initial commit"
git push

Option B: Web Interface

  1. 1.In your Space, click Files โ†’ Add file โ†’ Upload files
  2. 2.Upload these files:
  3. 3.app.py
  4. 4.requirements.txt
  5. 5.utils/ folder (all files inside)

Step 4: Configure Secrets

  1. 1.Go to Settings tab in your Space
  2. 2.Scroll to Repository secrets
  3. 3.Click New secret
  4. 4.Name: GROQ_API_KEY
  5. 5.Value: Your Groq API key
  6. 6.Click Add secret

Step 5: Build and Run

  • โ€”Hugging Face will automatically detect Streamlit and start building
  • โ€”Wait 2-3 minutes for the build to complete
  • โ€”Your app will be live at: https://huggingface.co/spaces/YOUR_USERNAME/easy-work-notes

Step 6: Share Your App! ๐ŸŽ‰

Your app is now live and accessible to anyone with the URL!


๐ŸŽฏ Usage Guide

For a 20-Year-Old User (Simple Explanation)

Think of this app as your AI study buddy that never gets tired!

  1. 1.Get Your Audio Ready
  2. 2.Record your lecture on your phone/laptop
  3. 3.Or upload a lecture recording you already have
  4. 4.Supports: English, Urdu, or mixed
  1. 1.Upload to Easy Work
  2. 2.Click "Start Processing" on dashboard
  3. 3.Choose "Upload Audio File" or "Record Live"
  4. 4.Select your language and detail level
  1. 1.Let AI Work Its Magic โšก
  2. 2.The app transcribes the audio (speech โ†’ text)
  3. 3.Then organizes everything into neat sections
  4. 4.Creates a summary, key points, and study questions
  5. 5.Takes about 2-3 minutes for a 1-hour lecture
  1. 1.Download Your Notes
  2. 2.Get a professional PDF or Word document
  3. 3.Share with friends or print for studying
  4. 4.Use the auto-generated questions for review

Pro Tips:

  • โ€”Upload clear audio for best results
  • โ€”Use "Detailed" mode for important lectures
  • โ€”Check the Analytics page to track your study progress
  • โ€”Questions section is great for exam prep!

๐Ÿ› ๏ธ Project Structure

easy-work/
โ”œโ”€โ”€ app.py                      # Main Streamlit application
โ”œโ”€โ”€ requirements.txt            # Python dependencies
โ”œโ”€โ”€ .gitignore                 # Git ignore rules
โ”œโ”€โ”€ README.md                  # This file
โ””โ”€โ”€ utils/                     # Utility modules
    โ”œโ”€โ”€ __init__.py           # Package initializer
    โ”œโ”€โ”€ audio_processor.py    # Audio transcription (Groq Whisper)
    โ”œโ”€โ”€ text_processor.py     # Text cleaning & structuring (Groq Llama)
    โ”œโ”€โ”€ document_generator.py # PDF & DOCX generation
    โ””โ”€โ”€ analytics.py          # Usage statistics

๐Ÿ”ง Configuration

Groq Models Used

  • โ€”Whisper Large V3: Audio transcription
  • โ€”Llama 3.3 70B: Text processing and note generation

Customization Options

Edit app.py to customize:

  • โ€”UI colors and styling (CSS section)
  • โ€”Detail levels and their word counts
  • โ€”Section organization logic
  • โ€”Export formatting

๐Ÿ› Troubleshooting

Common Issues

1. "GROQ_API_KEY not found"

  • โ€”Make sure you've set the environment variable
  • โ€”For Hugging Face: Add it in Space settings โ†’ Secrets
  • โ€”For local: Create a .env file with your key

2. Audio upload fails

  • โ€”Check file format (MP3, WAV, etc.)
  • โ€”Ensure file is not corrupted
  • โ€”Try a smaller file (< 25MB recommended)

3. Transcription is inaccurate

  • โ€”Ensure audio quality is good
  • โ€”Select the correct language
  • โ€”Remove background noise if possible

4. App is slow

  • โ€”Processing time depends on audio length
  • โ€”1-hour lecture โ‰ˆ 2-3 minutes processing
  • โ€”Consider upgrading Hugging Face Space hardware

๐Ÿ™ Acknowledgments

  • โ€”Groq for providing amazing AI models
  • โ€”Streamlit for the awesome framework
  • โ€”Anthropic Claude for development assistance

Made with โค๏ธ by AI Engineers for Students Everywhere

Welcome to Streamlit!

Edit /src/streamlit_app.py to customize this app to your heart's desire. :heart:

If you have any questions, checkout our documentation and community forums.