kminutti commited on
Commit
59fcbbc
·
verified ·
1 Parent(s): c5d508b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -25,12 +25,13 @@ min_length = st.slider("Minimum summary length:", 10, 100, 30)
25
  max_length = st.slider("Maximum summary length:", 50, 200, 100)
26
 
27
  # Button to summarize text
28
- if st.button("Summarize") and text_input:
 
29
  summary = summarize_text(text_input, min_length, max_length)
30
  st.subheader("Summary:")
31
  st.write(summary)
32
 
33
- if st.button("Summarize") and not text_input:
34
  st.write("Please enter text to summarize.")
35
 
36
 
 
25
  max_length = st.slider("Maximum summary length:", 50, 200, 100)
26
 
27
  # Button to summarize text
28
+ summarize_btn = st.button("Summarize")
29
+ if summarize_btn and text_input:
30
  summary = summarize_text(text_input, min_length, max_length)
31
  st.subheader("Summary:")
32
  st.write(summary)
33
 
34
+ if summarize_btn and not text_input:
35
  st.write("Please enter text to summarize.")
36
 
37