Plachta commited on
Commit
74242f2
β€’
1 Parent(s): dbf705c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -102,4 +102,7 @@ noise_scale_w_slider = gr.Slider(minimum=0.1, maximum=5, value=0.8, step=0.1, la
102
  app = gr.Interface(fn=infer, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider,], outputs=["text","audio"],title=title, description=description, article=article, examples=examples)
103
 
104
  if __name__=="__main__":
105
- app.queue(concurrency_count=3).launch(show_api=False)
 
 
 
 
102
  app = gr.Interface(fn=infer, inputs=[textbox, char_dropdown, language_dropdown, duration_slider, noise_scale_slider, noise_scale_w_slider,], outputs=["text","audio"],title=title, description=description, article=article, examples=examples)
103
 
104
  if __name__=="__main__":
105
+ parser = argparse.ArgumentParser()
106
+ parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
107
+ args = parser.parse_args()
108
+ app.queue(concurrency_count=3).launch(show_api=False, share=args.share)