Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
# Define the path to the caching directory
|
5 |
-
cache_directory = "C://Users//10Rs6//AppData//Local//transformers"
|
6 |
|
7 |
# Load the pipeline with the cache_dir parameter
|
8 |
-
pipe = pipeline(model="tarteel-ai/whisper-base-ar-quran"
|
9 |
|
10 |
def transcribe(audio):
|
11 |
text = pipe(audio)["text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
|
5 |
# Load the pipeline with the cache_dir parameter
|
6 |
+
pipe = pipeline(model="tarteel-ai/whisper-base-ar-quran")
|
7 |
|
8 |
def transcribe(audio):
|
9 |
text = pipe(audio)["text"]
|