almncarlo commited on
Commit
f80fa26
·
verified ·
1 Parent(s): 77ca79d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
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
- with gr.Column():
279
- model_output_text_box = gr.Textbox(
280
- label="Transcribed Text",
281
- elem_id="model_output_text_box",
282
- )
283
- llm_output_text_box = gr.Textbox(
284
- label="MyAlexa's Answer",
285
- elem_id="llm_output_text_box",
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
  )