Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,7 +148,7 @@ with gr.Blocks(
|
|
| 148 |
|
| 149 |
# Input text
|
| 150 |
text_input = gr.Textbox(
|
| 151 |
-
label="
|
| 152 |
placeholder="Wandika wano ekigambo mu Luganda...",
|
| 153 |
value="Gyebaleko ssebo.",
|
| 154 |
lines=5,
|
|
@@ -158,7 +158,7 @@ with gr.Blocks(
|
|
| 158 |
# Model selection and generate button in a row
|
| 159 |
with gr.Row():
|
| 160 |
model_choice = gr.Radio(
|
| 161 |
-
label="
|
| 162 |
choices=list(MODEL_INFO.keys()),
|
| 163 |
value="Model 1",
|
| 164 |
interactive=True
|
|
@@ -166,7 +166,7 @@ with gr.Blocks(
|
|
| 166 |
|
| 167 |
with gr.Column():
|
| 168 |
generate_btn = gr.Button(
|
| 169 |
-
"
|
| 170 |
variant="primary",
|
| 171 |
elem_classes=["generate-btn"],
|
| 172 |
size="lg"
|
|
@@ -174,7 +174,7 @@ with gr.Blocks(
|
|
| 174 |
|
| 175 |
# Audio output
|
| 176 |
audio_output = gr.Audio(
|
| 177 |
-
label="
|
| 178 |
type="filepath",
|
| 179 |
interactive=False
|
| 180 |
)
|
|
@@ -186,7 +186,7 @@ with gr.Blocks(
|
|
| 186 |
outputs=audio_output,
|
| 187 |
fn=generate_speech,
|
| 188 |
cache_examples=False,
|
| 189 |
-
label="
|
| 190 |
)
|
| 191 |
|
| 192 |
# Event handlers
|
|
|
|
| 148 |
|
| 149 |
# Input text
|
| 150 |
text_input = gr.Textbox(
|
| 151 |
+
label="Enter Luganda Text",
|
| 152 |
placeholder="Wandika wano ekigambo mu Luganda...",
|
| 153 |
value="Gyebaleko ssebo.",
|
| 154 |
lines=5,
|
|
|
|
| 158 |
# Model selection and generate button in a row
|
| 159 |
with gr.Row():
|
| 160 |
model_choice = gr.Radio(
|
| 161 |
+
label="Select Model",
|
| 162 |
choices=list(MODEL_INFO.keys()),
|
| 163 |
value="Model 1",
|
| 164 |
interactive=True
|
|
|
|
| 166 |
|
| 167 |
with gr.Column():
|
| 168 |
generate_btn = gr.Button(
|
| 169 |
+
"Generate Speech",
|
| 170 |
variant="primary",
|
| 171 |
elem_classes=["generate-btn"],
|
| 172 |
size="lg"
|
|
|
|
| 174 |
|
| 175 |
# Audio output
|
| 176 |
audio_output = gr.Audio(
|
| 177 |
+
label="Generated Speech",
|
| 178 |
type="filepath",
|
| 179 |
interactive=False
|
| 180 |
)
|
|
|
|
| 186 |
outputs=audio_output,
|
| 187 |
fn=generate_speech,
|
| 188 |
cache_examples=False,
|
| 189 |
+
label="Try these examples"
|
| 190 |
)
|
| 191 |
|
| 192 |
# Event handlers
|