JotunnBurton commited on
Commit
7ad160a
·
verified ·
1 Parent(s): bfb8cef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -189,15 +189,13 @@ def create_tts_fn(hps, net_g, device):
189
 
190
 
191
  # Function to build a single tab per model
192
- def create_tab(title, example, speakers, tts_fn, split_fn, repid):
193
- with gr.TabItem(speakers[0]):
194
  gr.Markdown(
195
  '<div align="center">'
196
  f'<a><strong>{repid}</strong></a>'
197
  f'<br>'
198
  f'<a><strong>{title}</strong></a>'
199
- f'<br>'
200
- f'<a><strong>{speakers}</strong></a>'
201
  f'</div>'
202
  )
203
  with gr.Row():
@@ -302,8 +300,8 @@ if __name__ == "__main__":
302
  with gr.Blocks(theme='NoCrypt/miku') as app:
303
  gr.Markdown("## ✅ All models loaded successfully. Ready to use.")
304
  with gr.Tabs():
305
- for (title, example, speakers, tts_fn, split_fn, repid) in models:
306
- create_tab(title, example, speakers, tts_fn, split_fn, repid)
307
 
308
  app.queue().launch(share=args.share)
309
 
 
189
 
190
 
191
  # Function to build a single tab per model
192
+ def create_tab(name,title, example, speakers, tts_fn, split_fn, repid):
193
+ with gr.TabItem(name):
194
  gr.Markdown(
195
  '<div align="center">'
196
  f'<a><strong>{repid}</strong></a>'
197
  f'<br>'
198
  f'<a><strong>{title}</strong></a>'
 
 
199
  f'</div>'
200
  )
201
  with gr.Row():
 
300
  with gr.Blocks(theme='NoCrypt/miku') as app:
301
  gr.Markdown("## ✅ All models loaded successfully. Ready to use.")
302
  with gr.Tabs():
303
+ for (name,title, example, speakers, tts_fn, split_fn, repid) in models:
304
+ create_tab(name,title, example, speakers, tts_fn, split_fn, repid)
305
 
306
  app.queue().launch(share=args.share)
307