Spaces:
Sleeping
Sleeping
fix: add length
Browse files
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)
|
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")
|