Kr08 commited on
Commit
cec2959
·
verified ·
1 Parent(s): 1a539e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -136,7 +136,7 @@ with gr.Blocks() as iface:
136
  process_button = gr.Button("Process Audio")
137
 
138
  with gr.Column():
139
- results = gr.Textbox(label="Output")
140
  # transcription_output = gr.Textbox(label="Transcription/Translation", lines=10)
141
  # full_text_output = gr.Textbox(label="Full Text", lines=5)
142
 
@@ -160,14 +160,14 @@ with gr.Blocks() as iface:
160
 
161
  summarize_button.click(
162
  summarize_text,
163
- inputs=[results],
164
  # inputs=[full_text_output],
165
  outputs=[summary_output]
166
  )
167
 
168
  answer_button.click(
169
  answer_question,
170
- inputs=[results, question_input],
171
  outputs=[answer_output]
172
  )
173
 
 
136
  process_button = gr.Button("Process Audio")
137
 
138
  with gr.Column():
139
+ ASR_RESULT = gr.Textbox(label="Output")
140
  # transcription_output = gr.Textbox(label="Transcription/Translation", lines=10)
141
  # full_text_output = gr.Textbox(label="Full Text", lines=5)
142
 
 
160
 
161
  summarize_button.click(
162
  summarize_text,
163
+ inputs=[ASR_RESULT],
164
  # inputs=[full_text_output],
165
  outputs=[summary_output]
166
  )
167
 
168
  answer_button.click(
169
  answer_question,
170
+ inputs=[ASR_RESULT, question_input],
171
  outputs=[answer_output]
172
  )
173