Spaces:
Sleeping
Sleeping
Commit
·
02bb0c5
1
Parent(s):
fc991f2
replaced st.cache with st.cache_resource
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ class MultimodalModel(nn.Module):
|
|
148 |
logits = self.classifier(concat_output)
|
149 |
return logits
|
150 |
|
151 |
-
@st.
|
152 |
def speechtoText(wavfile):
|
153 |
return speech_model.transcribe(wavfile)['text']
|
154 |
|
|
|
148 |
logits = self.classifier(concat_output)
|
149 |
return logits
|
150 |
|
151 |
+
@st.cache_resource(show_spinner=False)
|
152 |
def speechtoText(wavfile):
|
153 |
return speech_model.transcribe(wavfile)['text']
|
154 |
|