DrishtiSharma
commited on
Commit
·
2f6b008
1
Parent(s):
aeac79a
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def predict_and_ctc_lm_decode(input_file):
|
|
33 |
input = tokenizer(transcribed_text, return_tensors="pt")
|
34 |
output = model.generate(input["input_ids"], max_length=40, num_beams=4, early_stopping=True)
|
35 |
output = tokenizer.decode(output[0], skip_special_tokens=True)
|
36 |
-
return f"Spanish Audio Transcription:
|
37 |
|
38 |
|
39 |
gr.Interface(
|
|
|
33 |
input = tokenizer(transcribed_text, return_tensors="pt")
|
34 |
output = model.generate(input["input_ids"], max_length=40, num_beams=4, early_stopping=True)
|
35 |
output = tokenizer.decode(output[0], skip_special_tokens=True)
|
36 |
+
return f"Spanish Audio Transcription: {transcribed_text} {new_line} Quechua Translation: {output}"
|
37 |
|
38 |
|
39 |
gr.Interface(
|