You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,21 @@
2
2
3
3
OpenAI Whisper API-style local server, runnig on FastAPI. This is for companies behind proxies or security firewalls.
4
4
5
-
This API will be compatible with [OpenAI Whisper (speech to text) API](https://openai.com/blog/introducing-chatgpt-and-whisper-apis). See also [Create transcription - API Reference - OpenAI API](https://platform.openai.com/docs/api-reference/audio/create).
5
+
This API will be compatible with [OpenAI Whisper (speech to text) API](https://openai.com/blog/introducing-chatgpt-and-whisper-apis). See also [Create transcription - API Reference - OpenAI API](https://platform.openai.com/docs/api-reference/audio/create).
6
6
7
7
Some of code has been copied from [whisper-ui](https://github.com/hayabhay/whisper-ui)
8
8
9
9
## Setup
10
+
10
11
This was built & tested on Python 3.10.8, Ubutu20.04/WSL2 but should also work on Python 3.9+.
# "text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger..."
25
-
#}
26
-
27
-
# -----
28
-
# copied from https://github.com/hayabhay/whisper-ui
29
-
30
-
# Whisper transcription functions
31
-
# ----------------
32
-
@lru_cache(maxsize=1)
33
-
defget_whisper_model(whisper_model: str):
34
-
"""Get a whisper model from the cache or download it if it doesn't exist"""
35
-
model=whisper.load_model(whisper_model)
36
-
returnmodel
17
+
# @lru_cache(maxsize=1)
18
+
# def get_whisper_model(whisper_model: str):
19
+
# """Get a whisper model from the cache or download it if it doesn't exist"""
0 commit comments