Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ def gentext():
|
|
7 |
return result
|
8 |
|
9 |
def genaudio():
|
10 |
-
result = audio.generate_voice(text
|
11 |
|
12 |
generate_text_gr = gradio.Interface(
|
13 |
fn=gentext,
|
@@ -24,16 +24,16 @@ out_audio = gradio.Audio(
|
|
24 |
)
|
25 |
|
26 |
input_text = gradio.Textbox(
|
27 |
-
label="Input Text
|
28 |
lines=2,
|
29 |
value="Hahaha OHH MY GOD! This is SOOO funny, I-I am Eleven a text-to-speech system!",
|
30 |
elem_id="input_text"
|
31 |
)
|
32 |
|
33 |
-
input_voice = "Arnold"
|
34 |
-
input_model = "eleven_monolingual_v1"
|
35 |
|
36 |
-
inputs = [input_text
|
37 |
outputs = [out_audio]
|
38 |
generate_audio_gr = gradio.Interface(
|
39 |
fn=genaudio,
|
|
|
7 |
return result
|
8 |
|
9 |
def genaudio():
|
10 |
+
result = audio.generate_voice(text)
|
11 |
|
12 |
generate_text_gr = gradio.Interface(
|
13 |
fn=gentext,
|
|
|
24 |
)
|
25 |
|
26 |
input_text = gradio.Textbox(
|
27 |
+
label="Input Text",
|
28 |
lines=2,
|
29 |
value="Hahaha OHH MY GOD! This is SOOO funny, I-I am Eleven a text-to-speech system!",
|
30 |
elem_id="input_text"
|
31 |
)
|
32 |
|
33 |
+
# input_voice = "Arnold"
|
34 |
+
# input_model = "eleven_monolingual_v1"
|
35 |
|
36 |
+
inputs = [input_text]
|
37 |
outputs = [out_audio]
|
38 |
generate_audio_gr = gradio.Interface(
|
39 |
fn=genaudio,
|