tykiww commited on
Commit
4049f7e
·
verified ·
1 Parent(s): 8e29844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -37,14 +37,14 @@ def generate_speech(text):
37
  file_path=config['inference']['file_path'],
38
  speaker_wav=config['inference']['speaker_wav'],
39
  language=config['inference']['language'])
40
- return file_path
41
 
42
 
43
 
44
  def main(config):
45
 
46
  # Create the Gradio interface
47
- interface = gr.Interface(
48
  fn=generate_speech,
49
  inputs=[
50
  gr.Textbox(label="Enter your text")
@@ -55,7 +55,7 @@ def main(config):
55
  )
56
 
57
  # Launch the interface
58
- interface.launch()
59
  return 0
60
 
61
  if __name__ == "__main__":
 
37
  file_path=config['inference']['file_path'],
38
  speaker_wav=config['inference']['speaker_wav'],
39
  language=config['inference']['language'])
40
+ return config['inference']['file_path']
41
 
42
 
43
 
44
  def main(config):
45
 
46
  # Create the Gradio interface
47
+ demo = gr.Interface(
48
  fn=generate_speech,
49
  inputs=[
50
  gr.Textbox(label="Enter your text")
 
55
  )
56
 
57
  # Launch the interface
58
+ demo.launch()
59
  return 0
60
 
61
  if __name__ == "__main__":