Lautaro Cardarelli commited on
Commit
642b143
·
1 Parent(s): c3cccdc

delete button

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -149,9 +149,8 @@ summarizer_and_qa = SummarizerAndQA()
149
  textbox_input = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
150
  summary_output = gr.Textbox(label="Resumen", lines=15)
151
  questions_output = gr.Textbox(label="Preguntas de guia generadas", lines=5)
152
- questions_generate_button = gr.Button("Generate", variant="primary", interactive=summarizer_and_qa.is_text_loaded())
153
 
154
  summarizer_interface = gr.Interface(fn=summarizer_and_qa.process_summarizer, inputs=[textbox_input], outputs=[summary_output], allow_flagging="never")
155
- questions_interface = gr.Interface(fn=summarizer_and_qa.process_questions, inputs=[], outputs=[questions_output], allow_flagging="never", submit_btn=questions_generate_button, live=True)
156
  chatbot_interface = gr.ChatInterface(fn=summarizer_and_qa.process_question_response, type="messages", examples=[], title="Preguntas sobre el texto")
157
  gr.TabbedInterface([summarizer_interface, questions_interface, chatbot_interface], ["Resumidor", "Preguntas de guia", "Chatbot"]).launch()
 
149
  textbox_input = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
150
  summary_output = gr.Textbox(label="Resumen", lines=15)
151
  questions_output = gr.Textbox(label="Preguntas de guia generadas", lines=5)
 
152
 
153
  summarizer_interface = gr.Interface(fn=summarizer_and_qa.process_summarizer, inputs=[textbox_input], outputs=[summary_output], allow_flagging="never")
154
+ questions_interface = gr.Interface(fn=summarizer_and_qa.process_questions, inputs=[], outputs=[questions_output], allow_flagging="never")
155
  chatbot_interface = gr.ChatInterface(fn=summarizer_and_qa.process_question_response, type="messages", examples=[], title="Preguntas sobre el texto")
156
  gr.TabbedInterface([summarizer_interface, questions_interface, chatbot_interface], ["Resumidor", "Preguntas de guia", "Chatbot"]).launch()