Spaces:
Runtime error
Runtime error
Gbadamosi_oluwaseyi
commited on
Commit
•
1a29dff
1
Parent(s):
092f4eb
commit
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ def main():
|
|
37 |
|
38 |
# control for Model Settings
|
39 |
st.sidebar.markdown("<h4 style = 'color:gold; align:center; font-size: 20px;'> Model Settings</h1>", unsafe_allow_html=True)
|
40 |
-
max_length= st.sidebar.
|
41 |
-
min_length= st.sidebar.
|
42 |
model_type = st.sidebar.selectbox("Model type", options=["Bart","T5"])
|
43 |
|
44 |
# This function is used to upload a .txt, .pdf, .docx file for summarization
|
37 |
|
38 |
# control for Model Settings
|
39 |
st.sidebar.markdown("<h4 style = 'color:gold; align:center; font-size: 20px;'> Model Settings</h1>", unsafe_allow_html=True)
|
40 |
+
max_length= st.sidebar.slider("Maximum length of the generated text is 500 tokens",min_value=100,max_value=500)
|
41 |
+
min_length= st.sidebar.slider("Minimum length of the generated text",min_value=30)
|
42 |
model_type = st.sidebar.selectbox("Model type", options=["Bart","T5"])
|
43 |
|
44 |
# This function is used to upload a .txt, .pdf, .docx file for summarization
|