lpw akhaliq HF staff commited on
Commit
e0ebd6d
1 Parent(s): de92275

add back api key (#3)

Browse files

- add back api key (fbeb283dcafa04dd52cb90a89a0aa2791fa906dd)


Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
3
  import numpy as np
4
 
5
 
6
- io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk")
7
- io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en")
8
- io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk")
9
- io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en")
10
 
11
  def inference(audio, model):
12
  if model == "xm_transformer_s2ut_en-hk":
 
3
  import numpy as np
4
 
5
 
6
+ io1 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_en-hk", api_key=os.environ['api_key'])
7
+ io2 = gr.Interface.load("huggingface/facebook/xm_transformer_s2ut_hk-en", api_key=os.environ['api_key'])
8
+ io3 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_en-hk", api_key=os.environ['api_key'])
9
+ io4 = gr.Interface.load("huggingface/facebook/xm_transformer_unity_hk-en", api_key=os.environ['api_key'])
10
 
11
  def inference(audio, model):
12
  if model == "xm_transformer_s2ut_en-hk":