Soumen commited on
Commit
97101e6
1 Parent(s): c7a7627

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -165,9 +165,11 @@ def main():
165
  output = query({
166
  "inputs": text,
167
  })
168
- st.success(output)
 
 
169
  if st.checkbox("Summarize generated text"):
170
- engsum(output)
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"):