Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ model = TrorYongASRModel.from_pretrained(model_id, trust_remote_code=True)
|
|
| 16 |
|
| 17 |
@torch.no_grad()
|
| 18 |
def transcribe_easier(filepath):
|
| 19 |
-
output=transcribe(filepath)
|
| 20 |
return output
|
| 21 |
|
| 22 |
iface = gr.Interface(
|
|
|
|
| 16 |
|
| 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(
|