spycoder commited on
Commit
bd04c53
1 Parent(s): adfc611

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ from collections import Counter
16
  device = torch.device("cpu")
17
  processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
18
  model = Wav2Vec2ForSequenceClassification.from_pretrained("facebook/wav2vec2-base-960h", num_labels=2).to(device)
19
- 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
 
 
16
  device = torch.device("cpu")
17
  processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
18
  model = Wav2Vec2ForSequenceClassification.from_pretrained("facebook/wav2vec2-base-960h", num_labels=2).to(device)
19
+ # model_path = "dysarthria_classifier12.pth"
20
+ model_path = 'model_weights2.pth'
21
  # model_path = '/home/user/app/dysarthria_classifier12.pth'
22
  model.load_state_dict(torch.load(model_path, map_location=torch.device('cpu')))
23