Spaces:
Runtime error
Runtime error
made changes in model
Browse files
app.py
CHANGED
@@ -45,12 +45,12 @@ def parse(wav_file, applyLM):
|
|
45 |
else:
|
46 |
return parse_transcription(logits)
|
47 |
|
48 |
-
|
49 |
-
model_id = "Harveenchadha/vakyansh-wav2vec2-odia-orm-100"
|
50 |
-
processor = Wav2Vec2Processor.from_pretrained(model_id)
|
51 |
-
processor_with_LM = Wav2Vec2ProcessorWithLM.from_pretrained(model_id)
|
52 |
-
model = Wav2Vec2ForCTC.from_pretrained(model_id)
|
53 |
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
input_ = gr.Audio(source="microphone", type="filepath")
|
56 |
txtbox = gr.Textbox(
|
|
|
45 |
else:
|
46 |
return parse_transcription(logits)
|
47 |
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
+
processor = Wav2Vec2Processor.from_pretrained("Harveenchadha/vakyansh-wav2vec2-odia-orm-100")
|
50 |
+
processor_with_LM = Wav2Vec2ProcessorWithLM.from_pretrained("Harveenchadha/vakyansh-wav2vec2-odia-orm-100")
|
51 |
+
model = Wav2Vec2ForCTC.from_pretrained("Harveenchadha/vakyansh-wav2vec2-odia-orm-100")
|
52 |
+
|
53 |
+
processor = AutoProcessor.from_pretrained
|
54 |
|
55 |
input_ = gr.Audio(source="microphone", type="filepath")
|
56 |
txtbox = gr.Textbox(
|