Spaces:
Sleeping
Sleeping
fix: typo fix
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ st.title("Text Summarisation")
|
|
| 5 |
pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
|
| 6 |
text_value = st.text_area("Summarise the following")
|
| 7 |
|
| 8 |
-
if
|
| 9 |
out = pipe(text_value, max_length=int(len(text_value)/2), min_length=int(len(text_value)/3), do_sample=False)
|
| 10 |
|
| 11 |
if len(out) >= 1:
|
|
|
|
| 5 |
pipe = pipeline(task="summarization", model="facebook/bart-large-cnn")
|
| 6 |
text_value = st.text_area("Summarise the following")
|
| 7 |
|
| 8 |
+
if text_value:
|
| 9 |
out = pipe(text_value, max_length=int(len(text_value)/2), min_length=int(len(text_value)/3), do_sample=False)
|
| 10 |
|
| 11 |
if len(out) >= 1:
|