updated binaries and instructions

This commit is contained in:
tcsenpai 2024-11-19 23:07:23 +01:00
parent 3cb3c39379
commit 071f887bd2
3 changed files with 67 additions and 0 deletions

View File

@ -4,6 +4,18 @@
YouTube Summarizer is a Streamlit-based web application that allows users to generate summaries of YouTube videos using AI-powered language models and optionally Whisper for transcription.
- [YouTube Summarizer by TCSenpai](#youtube-summarizer-by-tcsenpai)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Global Installation](#global-installation)
- [Run with the included binary](#run-with-the-included-binary)
- [Dependencies](#dependencies)
- [Project Structure](#project-structure)
- [Contributing](#contributing)
- [License](#license)
- [Credits](#credits)
![Screenshot](screenshot.png)
## Features
@ -62,6 +74,24 @@ YouTube Summarizer is a Streamlit-based web application that allows users to gen
6. Click the "Summarize" button to generate a summary of the video.
## Global Installation
You can install the application globally on your system by running the following command:
```
sudo ./install.sh
```
This will create a new command `youlama` that you can use to run the application.
## Run with the included binary
You can also run the application with the included binary:
```
./youlama
```
## Dependencies
- Streamlit

25
install.sh Executable file
View File

@ -0,0 +1,25 @@
#! /bin/bash
# Ensure the script is run with sudo
if [ "$EUID" -ne 0 ]; then
echo "Please run this script with sudo"
exit 1
fi
# Install dependencies
pip install -r requirements.txt || exit 1
# Get the directory of the script
DIR=$(pwd)
# Create a proper executable
CURRENT_DIR=$(pwd)
CMD="""
#!/bin/bash
cd $CURRENT_DIR
streamlit run src/main.py
"""
echo "$CMD" > /usr/local/bin/youlama
chmod +x /usr/local/bin/youlama

12
youlama Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# Install dependencies
if [ ! -f .installed ]; then
echo "Installing dependencies..."
pip install -r requirements.txt || exit 1
touch .installed
fi
# Run the app
echo "Running the app..."
streamlit run src/main.py