Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ model = TrorYongASRModel.from_pretrained(model_id, trust_remote_code=True)
|
|
| 17 |
@torch.no_grad()
|
| 18 |
def transcribe_easier(filepath):
|
| 19 |
output=transcribe(filepath, model, processor, max_tokens=1024)
|
| 20 |
-
return output
|
| 21 |
|
| 22 |
iface = gr.Interface(
|
| 23 |
fn=transcribe_easier,
|
|
|
|
| 17 |
@torch.no_grad()
|
| 18 |
def transcribe_easier(filepath):
|
| 19 |
output=transcribe(filepath, model, processor, max_tokens=1024)
|
| 20 |
+
return output.text
|
| 21 |
|
| 22 |
iface = gr.Interface(
|
| 23 |
fn=transcribe_easier,
|