From 33f2a60b11f942e786a45e07287f86d3911826ae Mon Sep 17 00:00:00 2001 From: sij Date: Thu, 14 Nov 2024 09:18:10 +0100 Subject: [PATCH] Delete summarize --- summarize | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 summarize diff --git a/summarize b/summarize deleted file mode 100755 index 483de30..0000000 --- a/summarize +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -# Check if a filename has been provided -if [ "$#" -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -filename="$1" - -# Check if the file exists -if [ ! -f "$filename" ]; then - echo "Error: File does not exist." - exit 1 -fi - -# Assuming GLOBAL_API_KEY is exported in your environment -if [ -z "$GLOBAL_API_KEY" ]; then - echo "Error: GLOBAL_API_KEY is not set." - exit 1 -fi - -# Endpoint -endpoint="https://api.sij.ai/speaksummary" - -# Make the request -curl -X POST "$endpoint" \ - -H "Authorization: Bearer $GLOBAL_API_KEY" \ - -H "Content-Type: multipart/form-data" \ - -F "file=@$filename" \ - -o "response.wav" - -# Check if the output was saved successfully -if [ -f "response.wav" ]; then - echo "The summary has been processed and saved as 'response.wav'" -else - echo "Failed to save the summary." -fi -