Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def ljspeech_example_cacher(text, n_timesteps, mel_temp, length_scale, spk=-1):
|
|
127 |
|
128 |
|
129 |
def main():
|
130 |
-
description = """# AkylAI TTS
|
131 |
|
132 |
with gr.Blocks(title="AkylAI TTS") as demo:
|
133 |
processed_text = gr.State(value=None)
|
@@ -138,7 +138,7 @@ def main():
|
|
138 |
gr.Markdown(description, scale=3)
|
139 |
with gr.Row():
|
140 |
image_url = "https://github.com/simonlobgromov/Matcha-TTS/blob/main/photo_2024-04-07_15-59-52.png?raw=true"
|
141 |
-
gr.Image(image_url, label=
|
142 |
|
143 |
with gr.Box():
|
144 |
radio_options = list(RADIO_OPTIONS.keys())
|
@@ -149,7 +149,7 @@ def main():
|
|
149 |
with gr.Row():
|
150 |
gr.Markdown("## Текстти кыргыз тилинде жазыңыз\n### Text Input")
|
151 |
with gr.Row():
|
152 |
-
text = gr.Textbox(value="", label=None, scale=3)
|
153 |
|
154 |
with gr.Row():
|
155 |
gr.Markdown("## Сүйлөө ылдамдыгы\n### Speaking rate")
|
@@ -168,10 +168,11 @@ def main():
|
|
168 |
length_scale = gr.Slider(
|
169 |
label=None,
|
170 |
minimum=0.5,
|
171 |
-
maximum=1
|
172 |
step=0.05,
|
173 |
-
value=
|
174 |
interactive=True,
|
|
|
175 |
)
|
176 |
mel_temp = gr.Slider(
|
177 |
label="Sampling temperature",
|
@@ -244,4 +245,4 @@ def main():
|
|
244 |
|
245 |
|
246 |
if __name__ == "__main__":
|
247 |
-
main()
|
|
|
127 |
|
128 |
|
129 |
def main():
|
130 |
+
description = """# AkylAI TTS Mini"""
|
131 |
|
132 |
with gr.Blocks(title="AkylAI TTS") as demo:
|
133 |
processed_text = gr.State(value=None)
|
|
|
138 |
gr.Markdown(description, scale=3)
|
139 |
with gr.Row():
|
140 |
image_url = "https://github.com/simonlobgromov/Matcha-TTS/blob/main/photo_2024-04-07_15-59-52.png?raw=true"
|
141 |
+
gr.Image(image_url, label=None, width=660, height=315, show_label=False)
|
142 |
|
143 |
with gr.Box():
|
144 |
radio_options = list(RADIO_OPTIONS.keys())
|
|
|
149 |
with gr.Row():
|
150 |
gr.Markdown("## Текстти кыргыз тилинде жазыңыз\n### Text Input")
|
151 |
with gr.Row():
|
152 |
+
text = gr.Textbox(value="", label=None, scale=3, show_label=False)
|
153 |
|
154 |
with gr.Row():
|
155 |
gr.Markdown("## Сүйлөө ылдамдыгы\n### Speaking rate")
|
|
|
168 |
length_scale = gr.Slider(
|
169 |
label=None,
|
170 |
minimum=0.5,
|
171 |
+
maximum=1,
|
172 |
step=0.05,
|
173 |
+
value=0.9,
|
174 |
interactive=True,
|
175 |
+
show_label=False
|
176 |
)
|
177 |
mel_temp = gr.Slider(
|
178 |
label="Sampling temperature",
|
|
|
245 |
|
246 |
|
247 |
if __name__ == "__main__":
|
248 |
+
main()
|