How mariam-ebrahim/video_talky works
VidTalk is a Streamlit app that turns a YouTube link into a timestamped transcript and searchable video workspace. The main path fetches captions or falls back to audio transcription, then builds an index, sections, and summary; users can chat, take a quiz, find similar videos, jump to source times, and export PDFs. The README documents these product branches; some implementations were not excerpted, so only evidenced calls are connected. The model server is an external GPU service reached through the LLM client.
Main entry points: pipeline.py Video preparation · app.py Streamlit entry · workspace.py Video workspace · llm_json.py Structured responses
Components 30
Video workspace
- Streamlit entry
app.py - Link intake
ui/home.py - Video session
ui/state.py - Video workspace
ui/workspace.py - Chat tab
ui/chat_tab.py - Summary tab
ui/summary_tab.py - Quiz tab
ui/quiz_tab.py - Quiz review
ui/quiz_results.py - Similar tab
ui/similar_tab.py - PDF downloads
ui/downloads.py - Video sidebar
ui/sidebar.py
Video preparation
- Video preparation
core/pipeline.py - Caption retrieval
core/transcript.py - Audio acquisition
core/audio.py - Whisper transcription
core/speech.py - Transcript chunking
core/chunker.py - Search index
core/rag.py - Section generation
core/sections.py
Learning features
- Summary generation
core/summary.py - Video-grounded chat
core/chat.py - Quiz generation
core/quiz.py - Quiz grading
core/grading.py - Related videos
core/similar.py - PDF formatting
core/pdf_export.py
Model access
- Structured responses
core/llm_json.py - Model client
core/llm_client.py - GPU model server
core/llm_server.py
Other components
- Viewer
- YouTube
- Kaggle GPU
Connections 41
- Viewer → Streamlit entry: opens app
README.md - Streamlit entry → Link intake: routes UI
app.py - Streamlit entry → Video sidebar: renders
app.py - Streamlit entry → Video session: initializes
app.py - Streamlit entry → Video workspace: renders
app.py - Link intake → Video session: processes link
ui/state.py - Video session → Video preparation: processes video
ui/state.py - Video preparation → Caption retrieval: fetches captions
core/pipeline.py - Video preparation → Whisper transcription: transcribes fallback
core/pipeline.py - Video preparation → Transcript chunking: chunks transcript
core/pipeline.py - Video preparation → Search index: builds index
core/pipeline.py - Video preparation → Section generation: creates sections
core/pipeline.py - Video preparation → Summary generation: creates summary
core/pipeline.py - Caption retrieval → YouTube: fetches captions
README.md - Audio acquisition → YouTube: downloads audio
README.md - Whisper transcription → Audio acquisition: gets audio
core/speech.py - Whisper transcription → Model client: requests transcription
core/speech.py - Whisper transcription → Caption retrieval: returns transcript
core/speech.py - Video workspace → Chat tab: renders tab
ui/workspace.py - Video workspace → Summary tab: renders tab
ui/workspace.py - Video workspace → Quiz tab: renders tab
ui/workspace.py - Video workspace → Similar tab: renders tab
ui/workspace.py - Chat tab → Video-grounded chat: asks question
ui/chat_tab.py - Video-grounded chat → Search index: retrieves context
core/chat.py - Video-grounded chat → Model client: requests answer
core/chat.py - Section generation → Structured responses: labels blocks
core/sections.py - Summary generation → Structured responses: writes summary
core/summary.py - Quiz tab → Quiz generation: starts quiz
ui/quiz_tab.py - Quiz generation → Structured responses: generates questions
core/quiz.py - Quiz tab → Quiz review: shows results
ui/quiz_tab.py - Quiz review → Quiz grading: grades answers
ui/quiz_results.py - Quiz review → PDF formatting: builds quiz PDF
ui/quiz_results.py - Summary tab → PDF formatting: builds summary PDF
README.md - Summary tab → PDF downloads: offers download
README.md - Quiz review → PDF downloads: offers download
ui/quiz_results.py - PDF downloads → PDF formatting: creates file
ui/downloads.py - Similar tab → Related videos: finds related
README.md - Related videos → Structured responses: formats results
core/similar.py - Structured responses → Model client: requests JSON
core/llm_json.py - Model client → GPU model server: sends API requests
core/llm_client.py - GPU model server → Kaggle GPU: runs models
README.md