Shamik88 commited on
Commit
efe4639
·
1 Parent(s): d29f6ed

new test shamik 7

Browse files
Files changed (1) hide show
  1. app.py +20 -4
app.py CHANGED
@@ -774,12 +774,28 @@ with gr.Blocks() as app_emotional:
774
  with gr.Blocks() as app:
775
  gr.Markdown(
776
  """
777
- # TTS
778
 
779
- This is a local web UI for TTS with advanced batch processing support. This app supports the following TTS models:
780
- """
 
 
 
 
 
 
 
 
 
 
 
 
781
  )
782
- gr.TabbedInterface([app_tts, app_podcast, app_emotional], ["TTS", "Podcast", "Multi-Style"])
 
 
 
 
783
 
784
  @click.command()
785
  @click.option("--port", "-p", default=None, type=int, help="Port to run the app on")
 
774
  with gr.Blocks() as app:
775
  gr.Markdown(
776
  """
777
+ # TTS
778
 
779
+ This is a local web UI for TTS with advanced batch processing support. This app supports the following TTS models:
780
+ """
781
+ )
782
+
783
+ # Ensure all app tabs are initialized correctly
784
+ app_tts = gr.Blocks()
785
+ app_podcast = gr.Blocks()
786
+ app_emotional = gr.Blocks()
787
+
788
+ # Initialize the Tabbed Interface
789
+ tab_interface = gr.TabbedInterface(
790
+ [app_tts, app_podcast, app_emotional],
791
+ ["TTS", "Podcast", "Multi-Style"],
792
+ selected=0 # Start with the first tab (index 0)
793
  )
794
+
795
+ print("App TTS is interactive:", app_tts.interactive)
796
+ print("App Podcast is interactive:", app_podcast.interactive)
797
+ print("App Emotional is interactive:", app_emotional.interactive)
798
+
799
 
800
  @click.command()
801
  @click.option("--port", "-p", default=None, type=int, help="Port to run the app on")