Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,15 @@
|
|
3 |
# imports
|
4 |
import gradio as gr
|
5 |
|
|
|
|
|
6 |
# automatically load the interface from a HF model
|
7 |
demo = gr.Interface.load(
|
8 |
"huggingface/facebook/wav2vec2-base-960h",
|
9 |
title="Speech-to-text",
|
10 |
inputs="mic",
|
11 |
description="Let me try to guess what you're saying!",
|
|
|
12 |
)
|
13 |
|
14 |
# launch
|
|
|
3 |
# imports
|
4 |
import gradio as gr
|
5 |
|
6 |
+
auth_token = os.getenv("auth_token")
|
7 |
+
|
8 |
# automatically load the interface from a HF model
|
9 |
demo = gr.Interface.load(
|
10 |
"huggingface/facebook/wav2vec2-base-960h",
|
11 |
title="Speech-to-text",
|
12 |
inputs="mic",
|
13 |
description="Let me try to guess what you're saying!",
|
14 |
+
api_key=auth_token
|
15 |
)
|
16 |
|
17 |
# launch
|