Spaces:
Sleeping
Sleeping
Lautaro Cardarelli
commited on
Commit
·
95acd83
1
Parent(s):
642b143
fix solution
Browse files
app.py
CHANGED
@@ -135,12 +135,12 @@ class SummarizerAndQA:
|
|
135 |
return generate_summary(text)
|
136 |
|
137 |
def process_questions(self):
|
138 |
-
if not self.is_text_loaded:
|
139 |
return "Primero ingresa el texto en la seccion de Resumen"
|
140 |
return generate_questions(self.input_text)
|
141 |
|
142 |
def process_question_response(self, question, history):
|
143 |
-
if not self.is_text_loaded:
|
144 |
return "Primero ingresa el texto en la seccion de Resumen"
|
145 |
return generate_question_response(question, self.input_text)
|
146 |
|
|
|
135 |
return generate_summary(text)
|
136 |
|
137 |
def process_questions(self):
|
138 |
+
if not self.is_text_loaded():
|
139 |
return "Primero ingresa el texto en la seccion de Resumen"
|
140 |
return generate_questions(self.input_text)
|
141 |
|
142 |
def process_question_response(self, question, history):
|
143 |
+
if not self.is_text_loaded():
|
144 |
return "Primero ingresa el texto en la seccion de Resumen"
|
145 |
return generate_question_response(question, self.input_text)
|
146 |
|