https://github.com/assemblyai-community/lemur-lecture-summarizer
Automatically summarize lectures and ask questions about the course material
https://github.com/assemblyai-community/lemur-lecture-summarizer
llm python summarization
Last synced: 4 months ago
JSON representation
Automatically summarize lectures and ask questions about the course material
- Host: GitHub
- URL: https://github.com/assemblyai-community/lemur-lecture-summarizer
- Owner: AssemblyAI-Community
- Created: 2023-08-28T16:15:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T16:45:22.000Z (about 2 years ago)
- Last Synced: 2025-08-13T07:33:21.024Z (11 months ago)
- Topics: llm, python, summarization
- Language: Python
- Homepage: https://lemur-lecture-summarizer.streamlit.app/
- Size: 141 KB
- Stars: 11
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeMUR Lecture Summarizer
This application allows you to automatically summarize lectures and ask questions about the lesson material. Learn how to build this application in the [associated blog](https://www.assemblyai.com/blog/build-an-interactive-lecture-summarization-app/).
The application was tested with **Python 3.10.5**
## Prerequisites
You must have:
1. [Python](https://www.python.org/) installed
2. [pip](https://pip.pypa.io/en/stable/installation/) installed
3. An [AssemblyAI](https://www.assemblyai.com/dashboard/signup) account
## Setup
1. Clone this repository and cd into it
```bash
git clone https://github.com/AssemblyAI-Examples/lemur-lecture-summarizer.git
cd lemur-lecture-summarizer
```
2. Create and activate a virtual environment (optional)
MacOS/Linux:
```bash
python -m venv venv # you may need to use `python3` instead
source ./venv/bin/activate
```
Windows:
```bash
python -m venv venv # you may need to use `python3` instead
.\venv\Scripts\activate.bat
```
3. Install dependencies
```bash
pip install -r requirements.txt
```
4. Set your AssemblyAI API Key (optional)
In the `.env` file, replace `paste-your-key-here` with your AssemblyAI API key, which you can copy from your [Dashboard](https://www.assemblyai.com/dashboard/login). If you do not do this, you will be required to enter your API key in the application.
Note that you will need to have set up billing to use this application since it utilizes [LeMUR](https://www.assemblyai.com/blog/lemur/).
## Run the application
1. Start the app
```bash
streamlit run app.py
```
2. Open the app
Click the link output in the terminal by the last command - the default is http://localhost:8501/
## Use the application
1. Enter your AssemblyAI API key if you did not follow step 4 in the [Setup](#setup) section

2. Select the lecture file
You can use either an audio or video file, and the file can be locally stored, remotely stored (and publicly accessibly), or on YouTube.
You can optionally add `Context` to provide contextualizing information about the lecture.

3. View the results
Click "Submit" and wait for the results.
Processing time will depend on the length of the file - hour long lectures may take several minutes to process.

4. Ask a question (optional)
You can ask questions about the course content for further clarification
