mirror of
https://github.com/aljazceru/vibeline.git
synced 2026-01-13 03:24:24 +01:00
25 lines
471 B
Bash
Executable File
25 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Check if a file argument was provided
|
|
if [ $# -ne 1 ]; then
|
|
echo "Usage: $0 <transcript_file>"
|
|
exit 1
|
|
fi
|
|
|
|
# Get the input file
|
|
input_file="$1"
|
|
|
|
# Check if the input file exists
|
|
if [ ! -f "$input_file" ]; then
|
|
echo "Error: File $input_file does not exist"
|
|
exit 1
|
|
fi
|
|
|
|
# Activate the virtual environment
|
|
source vibenv/bin/activate
|
|
|
|
# Run the Python script
|
|
python src/summarize.py "$input_file"
|
|
|
|
# Deactivate the virtual environment
|
|
deactivate |