alztr2908 commited on
Commit
1fdda11
1 Parent(s): 0a1df40

configure secret key for hf token in app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
 
 
 
2
 
3
  demo = gr.load("huggingface/facebook/fastspeech2-en-ljspeech",
4
- token = HF_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."]]