Skip to content

Commit

Permalink
Merge pull request #9 from jquagga/updates
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
jquagga authored Apr 4, 2024
2 parents acd9664 + 1e02a04 commit 8ae3815
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions encode-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

echo "Copying $1 to transcribe directory"

mkdir -p media/transcribe
mkdir -p ./media/transcribe
filename="$1"
basename="${filename%.*}"
audiofile="$basename.wav"
json="$basename.json"

cp "$json" media/transcribe/
cp "$audiofile" media/transcribe/
cp "$json" ./media/transcribe/
cp "$audiofile" ./media/transcribe/
6 changes: 3 additions & 3 deletions ttt.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ def switch_model(model):
# THIS REQUIRES THE MODELS LOCALLY TO THIS FILE SINCE THEY WILL BE UPLOADED
# FROM HERE.
if model == "quick":
files = { #
"model": (None, open("models/ggml-small.en.bin", "rb")),
files = {
"model": (None, "models/ggml-small.en.bin"),
}
else:
files = {
"model": (None, open("models/ggml-medium.en.bin", "rb")),
"model": (None, "models/ggml-medium.en.bin"),
}

try:
Expand Down

0 comments on commit 8ae3815

Please sign in to comment.