elina12 commited on
Commit
ed018e2
1 Parent(s): e3ef543

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,6 +16,9 @@
16
  # )
17
 
18
  # iface.launch()
 
 
 
19
  from transformers import pipeline
20
 
21
  model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
@@ -25,8 +28,6 @@ def transcribe(filepath):
25
  output = pipe(
26
  filepath,
27
  max_new_tokens=10000,
28
- chunk_length_s=30,
29
- batch_size=8,
30
  )
31
  return output["text"]
32
 
 
16
  # )
17
 
18
  # iface.launch()
19
+
20
+
21
+
22
  from transformers import pipeline
23
 
24
  model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
 
28
  output = pipe(
29
  filepath,
30
  max_new_tokens=10000,
 
 
31
  )
32
  return output["text"]
33