Spaces:
Running
Running
Update app.py
Browse files
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"])
|