Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,9 +30,9 @@ def start_summarize(long_text, model):
|
|
| 30 |
summary = inf_learn.blurr_generate([long_text])[0]['generated_texts']
|
| 31 |
else:
|
| 32 |
summary = long_text
|
| 33 |
-
if summary!="":
|
| 34 |
-
|
| 35 |
-
|
| 36 |
#end start_summarize
|
| 37 |
|
| 38 |
st.title ("Text Summarization")
|
|
|
|
| 30 |
summary = inf_learn.blurr_generate([long_text])[0]['generated_texts']
|
| 31 |
else:
|
| 32 |
summary = long_text
|
| 33 |
+
# if summary!="":
|
| 34 |
+
st.success(summary)
|
| 35 |
+
st.select_slider('What do you think about the summary?', options=['Bad', 'Good', 'Excellent'], value=('Good'))
|
| 36 |
#end start_summarize
|
| 37 |
|
| 38 |
st.title ("Text Summarization")
|