spycoder commited on
Commit
7d73eec
1 Parent(s): df4dfab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,9 +20,9 @@ model_path = "dysarthria_classifier12.pth"
20
  model_path = '/home/user/app/dysarthria_classifier12.pth'
21
  model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')))
22
 
23
- if os.path.exists(model_path):
24
- print(f"Loading saved model {model_path}")
25
- model.load_state_dict(torch.load(model_path))
26
  def predict(file_path):
27
  max_length = 100000
28
 
 
20
  model_path = '/home/user/app/dysarthria_classifier12.pth'
21
  model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')))
22
 
23
+ # if os.path.exists(model_path):
24
+ # print(f"Loading saved model {model_path}")
25
+ # model.load_state_dict(torch.load(model_path))
26
  def predict(file_path):
27
  max_length = 100000
28