osanseviero commited on
Commit
ec81f5a
1 Parent(s): 9cae43d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -22
app.py CHANGED
@@ -60,26 +60,18 @@ examples = [
60
  ["how are you doing this day", "freeman"]
61
  ]
62
 
63
- block = gr.Blocks()
64
- with block:
65
- gr.Markdown("# TorToiSe")
66
- gr.Markdown("A multi-voice TTS system trained with an emphasis on quality")
67
- with gr.Tabs():
68
- with gr.TabItem("Pre-recorded voices"):
69
- iface = gr.Interface(
70
- inference,
71
- inputs=[
72
- gr.inputs.Textbox(type="str", default=text, label="Text", lines=3),
73
- gr.inputs.Dropdown(voices),
74
- ],
75
- outputs="audio",
76
- enable_queue=True,
77
- examples=examples,
78
- )
79
 
80
- gr.Markdown("This demo shows the ultra fast option in the TorToiSe system. For more info check the <a href='https://github.com/neonbjb/tortoise-tts' target='_blank'>Repository</a>.",)
81
-
82
- block.launch()
83
-
84
-
85
- iface.launch(cache_examples=True)
 
60
  ["how are you doing this day", "freeman"]
61
  ]
62
 
63
+ iface = gr.Interface(
64
+ inference,
65
+ inputs=[
66
+ gr.inputs.Textbox(type="str", default=text, label="Text", lines=3),
67
+ gr.inputs.Dropdown(voices),
68
+ ],
69
+ outputs="audio",
70
+ title="TorToiSe",
71
+ description="A multi-voice TTS system trained with an emphasis on quality",
72
+ article="This demo shows the ultra fast option in the TorToiSe system. For more info check the <a href='https://github.com/neonbjb/tortoise-tts' target='_blank'>Repository</a>.",
73
+ enable_queue=True,
74
+ examples=examples,
75
+ )
 
 
 
76
 
77
+ iface.launch(cache_examples=True)