Skip to content

Softchallenge2012/VideoChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VideoChat — Ask Your Video Anything

A two-column web app to upload a video, auto-generate its transcript, and chat with it using Claude AI.


## Architecture
videochat/
├── backend/
│   ├── app.py            ← Flask server (API + serves built frontend)
│   └── requirements.txt
├── frontend/
│   ├── public/index.html
│   ├── src/
│   │   ├── App.jsx       ← React UI (two-column layout)
│   │   └── index.js
│   └── package.json
├── start.sh              ← One-shot setup script
└── README.md

API Endpoints

Endpoint Method Description
POST /api/upload POST Receives video file, returns filepath + transcript
POST /api/query POST Receives query + transcript + history, returns AI answer
GET /api/video/<filename> GET Serves uploaded video file for the player

Setup

Requirements

  • Python 3.9+
  • Node.js 18+

1. Install & build

cd videochat
chmod +x start.sh
./start.sh

2. Start the server

cd backend
python app.py

3. Open the app

Visit http://localhost:5000


Development mode (hot-reload)

Run backend and frontend separately:

# Terminal 1 — Flask backend
cd backend
python app.py

# Terminal 2 — React dev server (proxies /api to Flask)
cd frontend
npm start

Open http://localhost:3000 for hot-reload React.


Features

  • Role-based Conversation
  • Combination of both image-to-text and text-to-text generation
  • Two-column layout — load data left, query right
  • Video upload with file-path display
  • Custom video player — play/pause, scrub bar, timestamps
  • Auto transcript extraction — displayed in scrollable panel
  • Chat interface — multi-turn conversation with history
  • Colorful, modern UI — gradient accents, smooth animations
  • Built with Flask + React + Claude API

About

deep dive into a movie through audio to text, video to text, and text generation.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors