Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ style="""
|
|
| 47 |
display:none;
|
| 48 |
}
|
| 49 |
#big_btn {
|
| 50 |
-
height:
|
| 51 |
border-radius:15px;
|
| 52 |
}
|
| 53 |
"""
|
|
@@ -170,19 +170,22 @@ with gr.Blocks(css=style,head=head) as b:
|
|
| 170 |
<h4>Piper: <a href='https://github.com/rhasspy/piper' target='_blank'>https://github.com/rhasspy/piper</a></h4>
|
| 171 |
<h4>PyPiperTTS: <a href='https://github.com/broadfield-dev/PyPiperTTS' target='_blank'>https://github.com/broadfield-dev/PyPiperTTS</a></h4>
|
| 172 |
""")
|
| 173 |
-
with gr.Group():
|
| 174 |
-
with gr.Row():
|
| 175 |
-
query=gr.Textbox(label="Query")
|
| 176 |
-
num=gr.Number(label="Count",step=1,value=10,interactive=False)
|
| 177 |
with gr.Row():
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 186 |
|
| 187 |
hid_start1=gr.Textbox(elem_id='readit')
|
| 188 |
hid_start=gr.Number(step=1,value=0,visible=False, interactive=False)
|
|
|
|
| 47 |
display:none;
|
| 48 |
}
|
| 49 |
#big_btn {
|
| 50 |
+
height:5em;
|
| 51 |
border-radius:15px;
|
| 52 |
}
|
| 53 |
"""
|
|
|
|
| 170 |
<h4>Piper: <a href='https://github.com/rhasspy/piper' target='_blank'>https://github.com/rhasspy/piper</a></h4>
|
| 171 |
<h4>PyPiperTTS: <a href='https://github.com/broadfield-dev/PyPiperTTS' target='_blank'>https://github.com/broadfield-dev/PyPiperTTS</a></h4>
|
| 172 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
with gr.Row():
|
| 174 |
+
gr.Column(scale=1)
|
| 175 |
+
with gr.Column(scale=2):
|
| 176 |
+
query=gr.Textbox(label="Query")
|
| 177 |
+
sub=gr.Button(elem_id='big_btn')
|
| 178 |
+
with gr.Group():
|
| 179 |
+
with gr.Row():
|
| 180 |
+
prev_btn=gr.Button("Previous",interactive=False)
|
| 181 |
+
next_btn=gr.Button("Next")
|
| 182 |
+
show_html=gr.HTML()
|
| 183 |
+
gr.Column(scale=1)
|
| 184 |
+
|
| 185 |
+
with gr.Column(visible=False):
|
| 186 |
+
num=gr.Number(label="Count",step=1,value=10,interactive=False)
|
| 187 |
+
html_out=gr.HTML()
|
| 188 |
+
json_out=gr.JSON()
|
| 189 |
|
| 190 |
hid_start1=gr.Textbox(elem_id='readit')
|
| 191 |
hid_start=gr.Number(step=1,value=0,visible=False, interactive=False)
|