Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,8 @@ if summarize:
|
|
| 82 |
with st.spinner(text="Loading Model and creating summary. This might take a few seconds depending on the length of your text..."):
|
| 83 |
model = model()
|
| 84 |
#summarized_text = text_to_summarize if len(text_to_summarize) > 60 else ''.join(model(body, min_length=60))
|
| 85 |
-
summarized_text = ''.join(model(text_to_summarize, min_length=60)) if summary_type == "Extractive" else model(text_to_summarize, max_length=200, min_length=60)
|
|
|
|
| 86 |
|
| 87 |
st.subheader("Original text")
|
| 88 |
st.write(text_to_summarize)
|
|
|
|
| 82 |
with st.spinner(text="Loading Model and creating summary. This might take a few seconds depending on the length of your text..."):
|
| 83 |
model = model()
|
| 84 |
#summarized_text = text_to_summarize if len(text_to_summarize) > 60 else ''.join(model(body, min_length=60))
|
| 85 |
+
summarized_text = ''.join(model(text_to_summarize, min_length=60)) if summary_type == "Extractive" else model(text_to_summarize, max_length=200, min_length=60)
|
| 86 |
+
#['summary_text']
|
| 87 |
|
| 88 |
st.subheader("Original text")
|
| 89 |
st.write(text_to_summarize)
|