Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ 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 |
|
23 |
# if os.path.exists(model_path):
|
|
|
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 |
|
23 |
# if os.path.exists(model_path):
|