Spaces:
Runtime error
Runtime error
configure secret key for hf token in app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
demo = gr.load("huggingface/facebook/fastspeech2-en-ljspeech",
|
4 |
-
token =
|
5 |
description="TTS using FastSpeech2",
|
6 |
title="Text to Speech (TTS)",
|
7 |
examples=[["The quick brown fox jumps over the lazy dog."]]
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
|
4 |
+
hf_key = os.getenv("HF_TOKEN")
|
5 |
|
6 |
demo = gr.load("huggingface/facebook/fastspeech2-en-ljspeech",
|
7 |
+
token = hf_key,
|
8 |
description="TTS using FastSpeech2",
|
9 |
title="Text to Speech (TTS)",
|
10 |
examples=[["The quick brown fox jumps over the lazy dog."]]
|