itsmariamaraki commited on
Commit
7d47ef1
1 Parent(s): 80c7a36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,13 +4,13 @@ pipe = pipeline('automatic-speech-recognition', model='openai/whisper-small')
4
  def transcribe_speech(filepath):
5
  output = pipe(
6
  filepath,
7
- max_new_tokens=256,
8
  generate_kwargs={
9
  "task": "transcribe",
10
  "language": "english",
11
  },
12
- chunk_length_s=30,
13
- batch_size=8,
14
  )
15
  return output["text"]
16
 
 
4
  def transcribe_speech(filepath):
5
  output = pipe(
6
  filepath,
7
+ max_new_tokens = 256,
8
  generate_kwargs={
9
  "task": "transcribe",
10
  "language": "english",
11
  },
12
+ chunk_length_s = 30,
13
+ batch_size = 8,
14
  )
15
  return output["text"]
16