Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|