Update app.py
Browse files
app.py
CHANGED
|
@@ -62,10 +62,28 @@ supported_languages = ["english", "french", "arabic", "chinese", "czech", "germa
|
|
| 62 |
# Streamlit UI
|
| 63 |
st.title(title)
|
| 64 |
st.markdown(description)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
method = st.selectbox("Select Summarization Method", methods)
|
| 67 |
language = st.selectbox("Select Language", supported_languages)
|
| 68 |
-
sentence_count = st.number_input("Number of Sentences", min_value=1, value=
|
| 69 |
input_type = st.radio("Input Type", ["URL", "Text"])
|
| 70 |
|
| 71 |
if input_type == "URL":
|
|
|
|
| 62 |
# Streamlit UI
|
| 63 |
st.title(title)
|
| 64 |
st.markdown(description)
|
| 65 |
+
import streamlit as st
|
| 66 |
+
|
| 67 |
+
# Set a custom title style using HTML and CSS
|
| 68 |
+
st.markdown(
|
| 69 |
+
"""
|
| 70 |
+
<style>
|
| 71 |
+
.title {
|
| 72 |
+
font-size: 36px !important;
|
| 73 |
+
color: #00008B !important; /* Dark blue color */
|
| 74 |
+
}
|
| 75 |
+
</style>
|
| 76 |
+
""",
|
| 77 |
+
unsafe_allow_html=True
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
# Display the custom title
|
| 81 |
+
st.title("Customized Title")
|
| 82 |
+
|
| 83 |
|
| 84 |
method = st.selectbox("Select Summarization Method", methods)
|
| 85 |
language = st.selectbox("Select Language", supported_languages)
|
| 86 |
+
sentence_count = st.number_input("Number of Sentences", min_value=1, value=7)
|
| 87 |
input_type = st.radio("Input Type", ["URL", "Text"])
|
| 88 |
|
| 89 |
if input_type == "URL":
|