Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ st.title ("Text Summarization")
|
|
| 41 |
model_type = st.radio('Pick a model',['RankText', 'Bart'])
|
| 42 |
textrank_summary_size = 0
|
| 43 |
if model_type=="RankText":
|
| 44 |
-
textrank_summary_size =
|
| 45 |
user_text = st.text_area('Enter or paste text to summarize')
|
| 46 |
start = st.button('Summarize')#, on_click=start_summarize, args=(user_text, model_type, ) )
|
| 47 |
|
|
|
|
| 41 |
model_type = st.radio('Pick a model',['RankText', 'Bart'])
|
| 42 |
textrank_summary_size = 0
|
| 43 |
if model_type=="RankText":
|
| 44 |
+
textrank_summary_size = st.slider('How long would you like the summary to be? (Percentage of full text)', 5,50)
|
| 45 |
user_text = st.text_area('Enter or paste text to summarize')
|
| 46 |
start = st.button('Summarize')#, on_click=start_summarize, args=(user_text, model_type, ) )
|
| 47 |
|