Spaces:
Runtime error
Runtime error
shahukareem
commited on
Commit
·
1d3c521
1
Parent(s):
810776d
model name update
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def convert(inputfile, outfile):
|
|
12 |
)
|
13 |
sox_tfm.build(inputfile, outfile)
|
14 |
api_token = os.getenv("API_TOKEN")
|
15 |
-
model_name = "shahukareem/
|
16 |
processor = Wav2Vec2Processor.from_pretrained(model_name, use_auth_token=api_token)
|
17 |
model = Wav2Vec2ForCTC.from_pretrained(model_name, use_auth_token=api_token)
|
18 |
def parse_transcription(wav_file):
|
|
|
12 |
)
|
13 |
sox_tfm.build(inputfile, outfile)
|
14 |
api_token = os.getenv("API_TOKEN")
|
15 |
+
model_name = "shahukareem/wav2vec2-large-xlsr-53-dhivehi"
|
16 |
processor = Wav2Vec2Processor.from_pretrained(model_name, use_auth_token=api_token)
|
17 |
model = Wav2Vec2ForCTC.from_pretrained(model_name, use_auth_token=api_token)
|
18 |
def parse_transcription(wav_file):
|