Auto-update: Tue Jul 30 19:43:50 PDT 2024
This commit is contained in:
parent
cbf3310f13
commit
d6477298fa
2 changed files with 1 additions and 22 deletions
22
asr copy
22
asr copy
|
@ -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
1
txt-line-merge-abc
Executable file → Normal file
|
@ -34,3 +34,4 @@ if __name__ == "__main__":
|
|||
else:
|
||||
merge_files(file_paths)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue