Spaces:
Runtime error
Runtime error
add back api key
Browse files
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":
|