elina12 commited on
Commit
3786660
1 Parent(s): c4de0bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -8,7 +8,10 @@ pipe = pipeline("automatic-speech-recognition", model=model_id)
8
 
9
  def transcribe(filepath):
10
  output = pipe(
11
- filepath
 
 
 
12
  )
13
  return output["text"]
14
 
@@ -20,4 +23,4 @@ iface = gr.Interface(
20
  outputs="text",
21
  )
22
 
23
- iface.launch()
 
8
 
9
  def transcribe(filepath):
10
  output = pipe(
11
+ filepath,
12
+ max_new_tokens=10000,
13
+ chunk_length_s=30,
14
+ batch_size=8,
15
  )
16
  return output["text"]
17
 
 
23
  outputs="text",
24
  )
25
 
26
+ iface.launch()