imenLa commited on
Commit
fdf341a
·
verified ·
1 Parent(s): 9a43531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,13 +55,13 @@ def generate_audio(inputs):
55
 
56
  return sr, audio_data
57
 
58
- gr.Interface(
59
  title = title,
60
  description = description,
61
  fn=generate_audio,
62
  inputs= gr.Text(label="Input Text"),
63
  examples = examples,
64
- outputs ="audio").launch()
65
 
66
- # if __name__ == "__main__":
67
- # demo.launch()
 
55
 
56
  return sr, audio_data
57
 
58
+ demo = gr.Interface(
59
  title = title,
60
  description = description,
61
  fn=generate_audio,
62
  inputs= gr.Text(label="Input Text"),
63
  examples = examples,
64
+ outputs ="audio")
65
 
66
+ if __name__ == "__main__":
67
+ demo.launch()