"...resnet50_tensorflow.git" did not exist on "4912beaa78293522fb32f9d3c0a183d7764f0ad3"
Commit 044bd003 authored by Ben Zhang's avatar Ben Zhang
Browse files

Make STT model configurable

parent 9e4dd4b8
...@@ -325,7 +325,7 @@ def transcribe( ...@@ -325,7 +325,7 @@ def transcribe(
headers = {"Authorization": f"Bearer {app.state.config.STT_OPENAI_API_KEY}"} headers = {"Authorization": f"Bearer {app.state.config.STT_OPENAI_API_KEY}"}
files = {"file": (filename, open(file_path, "rb"))} files = {"file": (filename, open(file_path, "rb"))}
data = {"model": "whisper-1"} data = {"model": app.state.config.STT_MODEL}
print(files, data) print(files, data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment