mrfakename commited on
Commit
5c7970d
1 Parent(s): 9aa8ee1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -768,24 +768,6 @@ If you're having issues, try converting your reference audio to WAV or MP3, clip
768
  )
769
  gr.TabbedInterface([app_tts, app_podcast, app_emotional, app_credits], ["TTS", "Podcast", "Multi-Style", "Credits"])
770
 
771
- @click.command()
772
- @click.option("--port", "-p", default=None, type=int, help="Port to run the app on")
773
- @click.option("--host", "-H", default=None, help="Host to run the app on")
774
- @click.option(
775
- "--share",
776
- "-s",
777
- default=False,
778
- is_flag=True,
779
- help="Share the app via Gradio share link",
780
- )
781
- @click.option("--api", "-a", default=True, is_flag=True, help="Allow API access")
782
- def main(port, host, share, api):
783
- global app
784
- print(f"Starting app...")
785
- app.queue(api_open=api).launch(
786
- server_name=host, server_port=port, share=share, show_api=api
787
- )
788
 
789
 
790
- if __name__ == "__main__":
791
- main()
 
768
  )
769
  gr.TabbedInterface([app_tts, app_podcast, app_emotional, app_credits], ["TTS", "Podcast", "Multi-Style", "Credits"])
770
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
771
 
772
 
773
+ app.queue().launch()