Auto-update: Tue Jul 30 19:43:50 PDT 2024

This commit is contained in:
sanj 2024-07-30 19:43:50 -07:00
parent cbf3310f13
commit d6477298fa
2 changed files with 1 additions and 22 deletions

View file

@ -1,22 +0,0 @@
#!/bin/bash
# Check if a filename is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 filename"
exit 1
fi
# Assign the first argument to FILENAME
FILENAME="$1"
# Check if the file exists
if [ ! -f "$FILENAME" ]; then
echo "Error: File not found - $FILENAME"
exit 1
fi
# Perform the curl POST request with the file
curl -X POST http://127.0.0.1:3456/v1/asr \
-H 'Authorization: bearer sk-NhrtQwCHNdK5sRZC' \
-F "file=@$FILENAME"

1
txt-line-merge-abc Executable file → Normal file
View file

@ -34,3 +34,4 @@ if __name__ == "__main__":
else:
merge_files(file_paths)