|
| 1 | +# Video Lingo AI – Demo |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +**Video Lingo AI** is a web application that allows users to: |
| 6 | + |
| 7 | +* Upload a video file. |
| 8 | +* Extract audio and transcribe it using Whisper AI. |
| 9 | +* Optionally generate a summarized version of the transcript. |
| 10 | +* View the transcript with timestamps. |
| 11 | +* Due to limited resources please upload any english spoked video. |
| 12 | + |
| 13 | + |
| 14 | +This tool is built to demonstrate how AI can help automatically understand, summarize, and localize video content. |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## Features Highlighted |
| 19 | + |
| 20 | +* **Video Processing & Transcription:** Uses Whisper AI to convert spoken content into text segments with timestamps. |
| 21 | +* **Summarization:** Generates concise summaries of video content (via a language model). |
| 22 | +* **Dynamic Transcript Display:** Shows each segment with start/end times for easy navigation. |
| 23 | +* **Multi-language Support :** Designed to translate transcript and summary into other languages, demonstrating the power of Lingo.dev for localization. |
| 24 | +* **Interactive Vue3 Frontend:** Drag-and-drop video uploads, toggles for summarization, and responsive results display. |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +## Tech Stack |
| 29 | + |
| 30 | +* **Backend:** FastAPI, Python 3.10+, Whisper AI, OpenAI API (for summarization & translation). |
| 31 | +* **Frontend:** Vue 3, Composition API, Axios for API requests. |
| 32 | +* **Other Libraries:** Pydantic, Requests, pathlib, shutil. |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## How to Run Locally |
| 37 | + |
| 38 | +1. **Clone the repository:** |
| 39 | + |
| 40 | +```bash |
| 41 | +git clone <your-repo-url> |
| 42 | +cd video-lingo-ai/api |
| 43 | +``` |
| 44 | + |
| 45 | +2. **Create and activate a virtual environment:** |
| 46 | + |
| 47 | +```bash |
| 48 | +python -m venv .venv |
| 49 | +source .venv/bin/activate # Linux/Mac |
| 50 | +.venv\Scripts\activate # Windows |
| 51 | +``` |
| 52 | + |
| 53 | +3. **Install dependencies:** |
| 54 | + |
| 55 | +```bash |
| 56 | +pip install -r requirements.txt |
| 57 | +``` |
| 58 | + |
| 59 | +4. **Set environment variables:** |
| 60 | + |
| 61 | +Create a `.env` file |
| 62 | + |
| 63 | +```env |
| 64 | +GROQ_API_KEY=<your_openai_api_key> |
| 65 | +LINGODOTDEV_API_KEY=<your_lingo_api_key> |
| 66 | +``` |
| 67 | + |
| 68 | +5. **Run the backend:** |
| 69 | + |
| 70 | +```bash |
| 71 | +uvicorn src.main:app --reload |
| 72 | +``` |
| 73 | + |
| 74 | +6. **Run the frontend:** |
| 75 | + |
| 76 | +```bash |
| 77 | +npm install |
| 78 | +npm run dev |
| 79 | +``` |
| 80 | + |
| 81 | +7. **Access the app in your browser:** |
| 82 | + |
| 83 | +``` |
| 84 | +http://localhost:5173 |
| 85 | +``` |
| 86 | + |
| 87 | +* Drag and drop a video file to upload. |
| 88 | +* Toggle summarization if needed. |
| 89 | +* View the transcript and summary in English/Hindi. |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +## Lingo.dev Integration |
| 94 | + |
| 95 | +The app is designed to highlight Lingo.dev features: |
| 96 | + |
| 97 | +* Translating dynamic content such as transcripts and summaries. |
| 98 | +* Supporting multiple languages for global accessibility. |
| 99 | +* Easy integration with web apps for localization workflows. |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +## Notes |
| 104 | + |
| 105 | +* The summarization feature may take a few seconds depending on video length. |
| 106 | + |
| 107 | +Thank you for Organizing this |
| 108 | + |
| 109 | +--- |
0 commit comments