fffiloni commited on
Commit
701d40f
1 Parent(s): 346d904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import gradio as gr
2
  from PIL import Image
3
-
 
4
  whisper_to_gpt = gr.Blocks.load(name="spaces/fffiloni/whisper-to-chatGPT")
5
  tts = gr.Interface.load(name="spaces/StevenLimcorn/fastspeech2-TTS")
6
- talking_face = gr.Interface.load(name="spaces/fffiloni/one-shot-talking-face")
7
 
8
  def infer(audio):
9
  gpt_response = whisper_to_gpt(audio, "translate", fn_index=0)
 
1
  import gradio as gr
2
  from PIL import Image
3
+ import os
4
+ token = os.environ.get('HF_TOKEN')
5
  whisper_to_gpt = gr.Blocks.load(name="spaces/fffiloni/whisper-to-chatGPT")
6
  tts = gr.Interface.load(name="spaces/StevenLimcorn/fastspeech2-TTS")
7
+ talking_face = gr.Interface.load(name="spaces/fffiloni/one-shot-talking-face", api_key=token)
8
 
9
  def infer(audio):
10
  gpt_response = whisper_to_gpt(audio, "translate", fn_index=0)