sharmavaruncs commited on
Commit
02bb0c5
·
1 Parent(s): fc991f2

replaced st.cache with st.cache_resource

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -148,7 +148,7 @@ class MultimodalModel(nn.Module):
148
  logits = self.classifier(concat_output)
149
  return logits
150
 
151
- @st.cache(show_spinner=False)
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