almncarlo commited on
Commit
8a6e8fa
·
verified ·
1 Parent(s): 490fa9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -274,8 +274,8 @@ with gr.Blocks(
274
  variant="primary", # make "primary" so it stands out (default is "secondary")
275
  )
276
 
277
- model_output_text_box = gr.Textbox(label="Transcribed Text", elem_id="model_output_text_box")
278
- # llm_output_text_box = gr.Textbox(label="MyAlexa's Answer", elem_id="llm_output_text_box")
279
 
280
  go_button.click(
281
  fn=transcribe,
@@ -283,11 +283,11 @@ with gr.Blocks(
283
  outputs = [model_output_text_box]
284
  )
285
 
286
- model_output_text_box.change(
287
- fn=llm_pipeline,
288
- inputs = [model_output_text_box.value],
289
- outputs = [llm_output_text_box]
290
- )
291
 
292
  # call on_src_or_tgt_lang_change whenever src_lang or tgt_lang dropdown menus are changed
293
  src_lang.change(
 
274
  variant="primary", # make "primary" so it stands out (default is "secondary")
275
  )
276
 
277
+ model_output_text_box = gr.Textbox(label="Transcribed Text", elem_id="model_output_text_box")
278
+ # llm_output_text_box = gr.Textbox(label="MyAlexa's Answer", elem_id="llm_output_text_box")
279
 
280
  go_button.click(
281
  fn=transcribe,
 
283
  outputs = [model_output_text_box]
284
  )
285
 
286
+ # model_output_text_box.change(
287
+ # fn=llm_pipeline,
288
+ # inputs = [model_output_text_box],
289
+ # outputs = [llm_output_text_box]
290
+ # )
291
 
292
  # call on_src_or_tgt_lang_change whenever src_lang or tgt_lang dropdown menus are changed
293
  src_lang.change(