Update app.py
Browse files
app.py
CHANGED
@@ -257,21 +257,6 @@ with gr.Blocks(css=custom_css) as demo:
|
|
257 |
gr.Button(question).click(
|
258 |
fn=chat_interface,
|
259 |
inputs=gr.State(value=question),
|
260 |
-
outputs=[
|
261 |
-
gr.State(),
|
262 |
-
gr.State(),
|
263 |
-
gr.State(),
|
264 |
-
gr.State()
|
265 |
-
],
|
266 |
-
_js="() => {return [arguments[0], document.querySelector('#response-output').value, document.querySelector('#faq-output').value, document.querySelector('#cleanup-output').value, document.querySelector('#plot-output').value]}"
|
267 |
-
).then(
|
268 |
-
fn=lambda response, faq_text, cleanup_stats, plot_path: (response, faq_text, cleanup_stats, plot_path),
|
269 |
-
inputs=[
|
270 |
-
gr.State(),
|
271 |
-
gr.State(),
|
272 |
-
gr.State(),
|
273 |
-
gr.State()
|
274 |
-
],
|
275 |
outputs=[
|
276 |
gr.Textbox(label="Bot Response", elem_id="response-output"),
|
277 |
gr.Textbox(label="Retrieved FAQs", elem_id="faq-output"),
|
|
|
257 |
gr.Button(question).click(
|
258 |
fn=chat_interface,
|
259 |
inputs=gr.State(value=question),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
outputs=[
|
261 |
gr.Textbox(label="Bot Response", elem_id="response-output"),
|
262 |
gr.Textbox(label="Retrieved FAQs", elem_id="faq-output"),
|