thak123 commited on
Commit
3c759b2
·
verified ·
1 Parent(s): 8466a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,6 +11,7 @@ def text_to_speech(text, language="hr"):
11
  audio_file = "output.mp3"
12
  tts.save(audio_file)
13
 
 
14
  return audio_file
15
 
16
  # Gradio interface
@@ -70,8 +71,8 @@ def reset_names(names):
70
 
71
  demo = gr.Interface(
72
  fn=select_and_speak,
73
- inputs=[gr.State()],
74
- outputs=[gr.Textbox(label="Remaining Names"), gr.Textbox(label="Selected Name"), gr.State()],
75
  title="Random Name Selector and Speaker",
76
  description="Enter a list of names separated by newlines in the 'Reset' tab to start.",
77
  )
 
11
  audio_file = "output.mp3"
12
  tts.save(audio_file)
13
 
14
+
15
  return audio_file
16
 
17
  # Gradio interface
 
71
 
72
  demo = gr.Interface(
73
  fn=select_and_speak,
74
+ inputs=["text"],
75
+ outputs=[gr.Textbox(label="Remaining Names"), gr.Textbox(label="Selected Name")],
76
  title="Random Name Selector and Speaker",
77
  description="Enter a list of names separated by newlines in the 'Reset' tab to start.",
78
  )