Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
1 |
+
# import gradio as gr
|
2 |
+
|
3 |
+
# gr.Interface.load("models/rohitp1/kkkh_whisper_small_distillation_att_loss_libri360_epochs_100_batch_4_concat_dataset").launch()
|
4 |
+
|
5 |
+
|
6 |
import gradio as gr
|
7 |
+
import os
|
8 |
+
|
9 |
+
# save your HF API token from https:/hf.co/settings/tokens as an env variable to avoid rate limiting
|
10 |
+
auth_token = os.getenv("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")
|
11 |
+
|
12 |
+
# automatically load the interface from a HF model
|
13 |
+
# you can remove the api_key parameter if you don't care about rate limiting.
|
14 |
+
demo = gr.load(
|
15 |
+
"models/rohitp1/kkkh_whisper_small_distillation_att_loss_libri360_epochs_100_batch_4_concat_dataset",
|
16 |
+
title="Speech-to-text-LibriSpeech-Noise-Robust",
|
17 |
+
inputs="mic",
|
18 |
+
description="Let me try to guess what you're saying!",
|
19 |
+
api_key=auth_token
|
20 |
+
)
|
21 |
|
22 |
+
demo.launch()
|