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