elina12 commited on
Commit
8706245
1 Parent(s): 5119474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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", cache_dir=cache_directory)
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"]