Spaces:
Sleeping
Sleeping
mandali8686
commited on
Commit
•
3abf34c
1
Parent(s):
75b806b
Update app.py
Browse files
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.
|
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()
|