Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,14 @@ with gr.Blocks(theme="Hev832/Applio-Theme") as b:
|
|
60 |
<h4>PyPiperTTS: <a href='https://github.com/broadfield-dev/PyPiperTTS' target='_blank'>https://github.com/broadfield-dev/PyPiperTTS</a></h4>
|
61 |
""")
|
62 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
with gr.Column(scale=1):
|
64 |
with gr.Accordion("Control"):
|
65 |
stream=gr.Checkbox(label="Stream",info="Streaming is fast, but lower quality",value=True,interactive=True)
|
@@ -72,14 +80,6 @@ with gr.Blocks(theme="Hev832/Applio-Theme") as b:
|
|
72 |
save_file=gr.File()
|
73 |
with gr.Tab("Load Settings"):
|
74 |
load_file=gr.File()
|
75 |
-
with gr.Column(scale=2):
|
76 |
-
in_txt=gr.Textbox(label="Text",lines=10)
|
77 |
-
names=gr.Dropdown()
|
78 |
-
with gr.Row():
|
79 |
-
stream_btn=gr.Button("Stream",interactive=True,visible=True)
|
80 |
-
sub_btn=gr.Button(interactive=False,visible=False)
|
81 |
-
cancel_btn=gr.Button("Stop")
|
82 |
-
out_aud=gr.Audio(streaming=True, autoplay=True)
|
83 |
with gr.Column(scale=1):
|
84 |
expbtn1=gr.Button("Example 1").click(exp1,None,[in_txt,load_file])
|
85 |
expbtn2=gr.Button("Example 2").click(exp2,None,[in_txt,load_file])
|
|
|
60 |
<h4>PyPiperTTS: <a href='https://github.com/broadfield-dev/PyPiperTTS' target='_blank'>https://github.com/broadfield-dev/PyPiperTTS</a></h4>
|
61 |
""")
|
62 |
with gr.Row():
|
63 |
+
with gr.Column(scale=2):
|
64 |
+
in_txt=gr.Textbox(label="Text",lines=10)
|
65 |
+
names=gr.Dropdown()
|
66 |
+
with gr.Row():
|
67 |
+
stream_btn=gr.Button("Stream",interactive=True,visible=True)
|
68 |
+
sub_btn=gr.Button(interactive=False,visible=False)
|
69 |
+
cancel_btn=gr.Button("Stop")
|
70 |
+
out_aud=gr.Audio(streaming=True, autoplay=True)
|
71 |
with gr.Column(scale=1):
|
72 |
with gr.Accordion("Control"):
|
73 |
stream=gr.Checkbox(label="Stream",info="Streaming is fast, but lower quality",value=True,interactive=True)
|
|
|
80 |
save_file=gr.File()
|
81 |
with gr.Tab("Load Settings"):
|
82 |
load_file=gr.File()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
with gr.Column(scale=1):
|
84 |
expbtn1=gr.Button("Example 1").click(exp1,None,[in_txt,load_file])
|
85 |
expbtn2=gr.Button("Example 2").click(exp2,None,[in_txt,load_file])
|