Update app.py
Browse files
app.py
CHANGED
|
@@ -271,24 +271,22 @@ with gr.Blocks(
|
|
| 271 |
)
|
| 272 |
|
| 273 |
with gr.Column():
|
| 274 |
-
|
| 275 |
gr.HTML("<p>Run the model.</p>")
|
| 276 |
|
| 277 |
go_button = gr.Button(
|
| 278 |
value="Run model",
|
| 279 |
variant="primary", # make "primary" so it stands out (default is "secondary")
|
| 280 |
)
|
| 281 |
-
|
| 282 |
-
model_output_text_box = gr.Textbox(
|
| 283 |
-
label="Transcribed Text",
|
| 284 |
-
elem_id="model_output_text_box",
|
| 285 |
-
)
|
| 286 |
-
|
| 287 |
-
llm_output_text_box = gr.Textbox(
|
| 288 |
-
label="MyAlexa's Answer",
|
| 289 |
-
elem_id="llm_output_text_box",
|
| 290 |
-
)
|
| 291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
|
| 293 |
go_button.click(
|
| 294 |
fn=transcribe,
|
|
|
|
| 271 |
)
|
| 272 |
|
| 273 |
with gr.Column():
|
|
|
|
| 274 |
gr.HTML("<p>Run the model.</p>")
|
| 275 |
|
| 276 |
go_button = gr.Button(
|
| 277 |
value="Run model",
|
| 278 |
variant="primary", # make "primary" so it stands out (default is "secondary")
|
| 279 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 280 |
|
| 281 |
+
with gr.Column():
|
| 282 |
+
model_output_text_box = gr.Textbox(
|
| 283 |
+
label="Transcribed Text",
|
| 284 |
+
elem_id="model_output_text_box",
|
| 285 |
+
)
|
| 286 |
+
llm_output_text_box = gr.Textbox(
|
| 287 |
+
label="MyAlexa's Answer",
|
| 288 |
+
elem_id="llm_output_text_box",
|
| 289 |
+
)
|
| 290 |
|
| 291 |
go_button.click(
|
| 292 |
fn=transcribe,
|