Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
import gradio as gr
|
7 |
import os
|
8 |
import transformers
|
9 |
-
from transformers import pipeline,
|
10 |
import time
|
11 |
|
12 |
# def greet_from_secret(ignored_param):
|
@@ -15,7 +15,7 @@ import time
|
|
15 |
|
16 |
|
17 |
auth_token = os.environ.get('TOKEN')
|
18 |
-
model =
|
19 |
use_auth_token=auth_token)
|
20 |
|
21 |
p = pipeline('automatic-speech-recognition', model=model)
|
|
|
6 |
import gradio as gr
|
7 |
import os
|
8 |
import transformers
|
9 |
+
from transformers import pipeline, WhisperForConditionalGeneration
|
10 |
import time
|
11 |
|
12 |
# def greet_from_secret(ignored_param):
|
|
|
15 |
|
16 |
|
17 |
auth_token = os.environ.get('TOKEN')
|
18 |
+
model = WhisperForConditionalGeneration.from_pretrained("rohitp1/kkkh_whisper_small_distillation_att_loss_libri360_epochs_100_batch_4_concat_dataset",
|
19 |
use_auth_token=auth_token)
|
20 |
|
21 |
p = pipeline('automatic-speech-recognition', model=model)
|