mandali8686 commited on
Commit
3abf34c
1 Parent(s): 75b806b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ pretrained_vit_path = 'pretrained_vit_model_full.pth'
9
  class_names = ['Angry', 'Other', 'Sad', 'happy']
10
 
11
  # Load your model
12
- @st.cache(allow_output_mutation=True)
13
  def load_model():
14
  model = torch.load(pretrained_vit_path, map_location=torch.device('cpu'))
15
  model.eval()
 
9
  class_names = ['Angry', 'Other', 'Sad', 'happy']
10
 
11
  # Load your model
12
+ @st.experimental_singleton
13
  def load_model():
14
  model = torch.load(pretrained_vit_path, map_location=torch.device('cpu'))
15
  model.eval()