Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
|
|
|
|
3 |
|
4 |
-
pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
text = pipe(audio)["text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
+
#add
|
4 |
+
auth_token = os.environ.get("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") or True
|
5 |
|
6 |
+
pipe = pipeline(model="jonatasgrosman/wav2vec2-large-xlsr-53-arabic",use_auth_token=auth_token)
|
7 |
|
8 |
def transcribe(audio):
|
9 |
text = pipe(audio)["text"]
|