Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ model = ASRModel.from_pretrained(model_name=MODEL_NAME).to(device)
|
|
14 |
model.eval()
|
15 |
|
16 |
def get_transcripts(audio_path):
|
17 |
-
text = model.transcribe([audio_path])[0]
|
18 |
return text
|
19 |
|
20 |
article = (
|
|
|
14 |
model.eval()
|
15 |
|
16 |
def get_transcripts(audio_path):
|
17 |
+
text = model.transcribe([audio_path])[0].text
|
18 |
return text
|
19 |
|
20 |
article = (
|