saidsef commited on
Commit
5b07eb9
·
verified ·
1 Parent(s): 2bfd0a6

fix: add length

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ text = st.text_area("Summarise the following")
8
  if text:
9
  out = pipe(text, do_sample=False)
10
  st.write(out)
11
- st.write(f"{type(out)}")
12
 
13
- if len(out) > 100:
14
  st.download_button("summary download", out, file_name="summersation.txt", mime="text/plain")
 
8
  if text:
9
  out = pipe(text, do_sample=False)
10
  st.write(out)
11
+ st.write(f"{type(out)}, length: {len(out)}")
12
 
13
+ if len(out) >= 1:
14
  st.download_button("summary download", out, file_name="summersation.txt", mime="text/plain")