Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Lightning-Universe/InVideo-search_app

Repository files navigation

Video Search App 📹


Getting StartedVideo Search App URL

PyPI - Python Version PyPI Status PyPI Status Slack license


Video Search App

A smart video app that understands videos and makes it as searchable as the web. Go Beyond Metadata.

Running the app

conda create --name video_search python=3.8
conda activate video_search

git clone https://github.com/Lightning-AI/LAI-InVideo-search-App
cd video_search
pip install -r requirements.txt
pip install -e .

## To run the app locally
python -m lightning run app app.py

## To run the app on the cloud to share it with your peers and users
python -m lightning run app app.py --cloud

About this Lightning App

This Lightning App enables to search through the YouTube videos. Just provide a url and wait for the processing to finish, now you can search for anything You want in it. This application is fairly simple already showcases the following features of Lightning Framework:

  • Multi-tenant Frontend & Backend application architecture
  • UI written in React
  • Backend serving REST API (with FastAPI + in-memory database)
  • Environment variables to parametrize execution environment

Structure

Application consists of the following files:

  • app.py - Definition of Lightning App main architecture.
  • video_search/server.py - Backend service (FastAPI) running in Lightning Work.
  • video_search/storage.py - Simple in-memory storage for our application.
  • video_search/ml.py - Dedicated (and independent) ML module for processing and searching the videos.