rmayormartins
commited on
Commit
β’
a3414e2
1
Parent(s):
de44379
Subindo arquivos3
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import Wav2Vec2Processor, Wav2Vec2ForSequenceClassification
|
|
6 |
#
|
7 |
model_name = "results"
|
8 |
processor = Wav2Vec2Processor.from_pretrained(model_name)
|
9 |
-
model = Wav2Vec2ForSequenceClassification.from_pretrained(model_name)
|
10 |
|
11 |
def classify_accent(audio):
|
12 |
if audio is None:
|
|
|
6 |
#
|
7 |
model_name = "results"
|
8 |
processor = Wav2Vec2Processor.from_pretrained(model_name)
|
9 |
+
model = Wav2Vec2ForSequenceClassification.from_pretrained(model_name, from_tf=False, from_flax=False, from_safetensors=True)
|
10 |
|
11 |
def classify_accent(audio):
|
12 |
if audio is None:
|