Kimang18 commited on
Commit
d7ffb81
·
verified ·
1 Parent(s): 19ed059

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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['text']
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,