spycoder commited on
Commit
e1cd816
1 Parent(s): 580a2d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ import torch.nn.functional as F
12
  from torch.utils.data import Dataset, DataLoader
13
  from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor, Wav2Vec2ForSequenceClassification
14
  from collections import Counter
15
- processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h"
16
  model = Wav2Vec2ForSequenceClassification.from_pretrained("facebook/wav2vec2-base-960h", num_labels=2).to(device)
17
  model_path = "dysarthria_classifier12.pth"
18
  if os.path.exists(model_path):
 
12
  from torch.utils.data import Dataset, DataLoader
13
  from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor, Wav2Vec2ForSequenceClassification
14
  from collections import Counter
15
+ processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
16
  model = Wav2Vec2ForSequenceClassification.from_pretrained("facebook/wav2vec2-base-960h", num_labels=2).to(device)
17
  model_path = "dysarthria_classifier12.pth"
18
  if os.path.exists(model_path):