Spaces:
Runtime error
Runtime error
add back api key (#3)
Browse files- add back api key (fbeb283dcafa04dd52cb90a89a0aa2791fa906dd)
Co-authored-by: Ahsen Khaliq <akhaliq@users.noreply.huggingface.co>
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":
|