Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ MY_HF_TOKEN_KEY = os.environ["MY_HF_TOKEN_KEY"]
|
|
6 |
|
7 |
client = Client("Ghana-NLP/kikuyu-tts",hf_token=MY_HF_TOKEN_KEY)
|
8 |
|
9 |
-
def generate(text):
|
10 |
-
output = client.predict(text)
|
11 |
return output
|
12 |
|
13 |
title = "GhanaNLP: Speech Synthesis"
|
@@ -23,7 +23,7 @@ examples = [
|
|
23 |
]
|
24 |
|
25 |
gr.Interface(
|
26 |
-
fn=
|
27 |
inputs=[
|
28 |
gr.Text(label="Input Text"),
|
29 |
gr.Radio(label="Speaker", choices=[
|
|
|
6 |
|
7 |
client = Client("Ghana-NLP/kikuyu-tts",hf_token=MY_HF_TOKEN_KEY)
|
8 |
|
9 |
+
def generate(text, speaker):
|
10 |
+
output = client.predict(text, speaker)
|
11 |
return output
|
12 |
|
13 |
title = "GhanaNLP: Speech Synthesis"
|
|
|
23 |
]
|
24 |
|
25 |
gr.Interface(
|
26 |
+
fn=generate,
|
27 |
inputs=[
|
28 |
gr.Text(label="Input Text"),
|
29 |
gr.Radio(label="Speaker", choices=[
|