mawairon commited on
Commit
5a0bdbe
1 Parent(s): 7f58142

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -90,7 +90,7 @@ def load_model(model_name: str):
90
  width = 768
91
  train_sequence_length = 16000
92
  weight_decay = 0.0001
93
- num_labs = len(set(y_train))
94
 
95
 
96
  model_seq = nn.Sequential(
@@ -112,6 +112,9 @@ def load_model(model_name: str):
112
  new_head
113
  )
114
 
 
 
 
115
  return joined_model, None
116
 
117
  else:
 
90
  width = 768
91
  train_sequence_length = 16000
92
  weight_decay = 0.0001
93
+ num_labs = 38
94
 
95
 
96
  model_seq = nn.Sequential(
 
112
  new_head
113
  )
114
 
115
+ weights = torch.load('NOO_CNN_1stGEAC_m4_16kcw_best.pth')
116
+ joined_model.load_state_dict(weights)
117
+
118
  return joined_model, None
119
 
120
  else: