Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ import transformers
|
|
9 |
from transformers import pipeline
|
10 |
import time
|
11 |
|
|
|
|
|
12 |
p = pipeline('automatic-speech-recognition', model='rohitp1/kkkh_whisper_small_distillation_att_loss_libri360_epochs_100_batch_4_concat_dataset')
|
13 |
|
14 |
def transcribe(audio, state=""):
|
@@ -29,4 +31,5 @@ gr.Interface(
|
|
29 |
"textbox",
|
30 |
"state"
|
31 |
],
|
32 |
-
live=False
|
|
|
|
9 |
from transformers import pipeline
|
10 |
import time
|
11 |
|
12 |
+
auth_token = os.getenv("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")
|
13 |
+
|
14 |
p = pipeline('automatic-speech-recognition', model='rohitp1/kkkh_whisper_small_distillation_att_loss_libri360_epochs_100_batch_4_concat_dataset')
|
15 |
|
16 |
def transcribe(audio, state=""):
|
|
|
31 |
"textbox",
|
32 |
"state"
|
33 |
],
|
34 |
+
live=False,
|
35 |
+
api_key=auth_token).launch()
|