laxsvips commited on
Commit
3ae5971
1 Parent(s): 0fe8fdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -7,7 +7,7 @@ def gentext():
7
  return result
8
 
9
  def genaudio():
10
- result = audio.generate_voice(text, voice_name, model_name)
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 (250 characters max)",
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, input_voice, input_model]
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,