Spaces:
Sleeping
Sleeping
Lautaro Cardarelli
commited on
Commit
·
1486044
1
Parent(s):
95acd83
clear object
Browse files
app.py
CHANGED
@@ -144,7 +144,15 @@ class SummarizerAndQA:
|
|
144 |
return "Primero ingresa el texto en la seccion de Resumen"
|
145 |
return generate_question_response(question, self.input_text)
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
summarizer_and_qa = SummarizerAndQA()
|
|
|
148 |
|
149 |
textbox_input = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
|
150 |
summary_output = gr.Textbox(label="Resumen", lines=15)
|
|
|
144 |
return "Primero ingresa el texto en la seccion de Resumen"
|
145 |
return generate_question_response(question, self.input_text)
|
146 |
|
147 |
+
def clear(self):
|
148 |
+
self.input_text = ''
|
149 |
+
self.question = ''
|
150 |
+
self.summary = ''
|
151 |
+
self.study_generated_questions = ''
|
152 |
+
self.question_response = ''
|
153 |
+
|
154 |
summarizer_and_qa = SummarizerAndQA()
|
155 |
+
summarizer_and_qa.clear()
|
156 |
|
157 |
textbox_input = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
|
158 |
summary_output = gr.Textbox(label="Resumen", lines=15)
|