zoya23 commited on
Commit
011e75f
·
verified ·
1 Parent(s): 7c43610

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -14,9 +14,6 @@ st.markdown("<h1 style='text-align: center;'>Text Summarization App</h1>", unsaf
14
 
15
  # UI: Mode and Length controls
16
  mode = st.radio("Modes", ["Paragraph", "Bullet Points", "Custom"], horizontal=True)
17
- length_slider = st.slider("Summary Length", 1, 2, 1, label_visibility="collapsed")
18
- length_label = "Short" if length_slider == 1 else "Long"
19
- st.markdown(f"Summary Length: **{length_label}**")
20
 
21
  # Model selection
22
  model_choice = st.selectbox("Choose Summarization Model", ["BART", "T5", "PEGASUS"])
 
14
 
15
  # UI: Mode and Length controls
16
  mode = st.radio("Modes", ["Paragraph", "Bullet Points", "Custom"], horizontal=True)
 
 
 
17
 
18
  # Model selection
19
  model_choice = st.selectbox("Choose Summarization Model", ["BART", "T5", "PEGASUS"])