Spaces:
Sleeping
Sleeping
BatuhanYilmaz
commited on
Commit
·
6ecadee
1
Parent(s):
faa4a1e
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,7 @@ loaded_model = whisper.load_model("base")
|
|
63 |
current_size = "None"
|
64 |
|
65 |
|
|
|
66 |
def change_model(current_size, size):
|
67 |
if current_size != size:
|
68 |
loaded_model = whisper.load_model(size)
|
|
|
63 |
current_size = "None"
|
64 |
|
65 |
|
66 |
+
@st.cache(allow_output_mutation=True)
|
67 |
def change_model(current_size, size):
|
68 |
if current_size != size:
|
69 |
loaded_model = whisper.load_model(size)
|