Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from transformers import pipeline
|
|
21 |
model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
|
22 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
23 |
|
24 |
-
def
|
25 |
output = pipe(
|
26 |
filepath,
|
27 |
max_new_tokens=10000,
|
|
|
21 |
model_id = "tarteel-ai/whisper-base-ar-quran" # update with your model id
|
22 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
23 |
|
24 |
+
def transcribe(filepath):
|
25 |
output = pipe(
|
26 |
filepath,
|
27 |
max_new_tokens=10000,
|