Update app.py
Browse files
app.py
CHANGED
@@ -165,9 +165,11 @@ def main():
|
|
165 |
output = query({
|
166 |
"inputs": text,
|
167 |
})
|
168 |
-
|
|
|
|
|
169 |
if st.checkbox("Summarize generated text"):
|
170 |
-
engsum(
|
171 |
|
172 |
|
173 |
if st.checkbox("Mark for Text Summarization"):
|
|
|
165 |
output = query({
|
166 |
"inputs": text,
|
167 |
})
|
168 |
+
if isinstance(output, list) and output[0].get("generated_text"):
|
169 |
+
text_output = output[0]["generated_text"]
|
170 |
+
st.success(text_output)
|
171 |
if st.checkbox("Summarize generated text"):
|
172 |
+
engsum(text_ouput)
|
173 |
|
174 |
|
175 |
if st.checkbox("Mark for Text Summarization"):
|