Spaces:
Sleeping
Sleeping
LVKinyanjui
commited on
Commit
•
d7d7ec2
1
Parent(s):
2330399
Mods to prevent hashing of model which will fail
Browse filesRequires adding an underscore to the argument that represents the model to be passed in.
app.py
CHANGED
@@ -31,8 +31,8 @@ def load_model():
|
|
31 |
return pipe
|
32 |
|
33 |
@st.cache_data
|
34 |
-
def transcribe(
|
35 |
-
result =
|
36 |
return result["text"]
|
37 |
|
38 |
|
|
|
31 |
return pipe
|
32 |
|
33 |
@st.cache_data
|
34 |
+
def transcribe(_pipe, sample):
|
35 |
+
result = _pipe(sample, return_timestamps=True)
|
36 |
return result["text"]
|
37 |
|
38 |
|