Update app.py
Browse files
app.py
CHANGED
|
@@ -13,15 +13,22 @@ st.set_page_config(
|
|
| 13 |
initial_sidebar_state="expanded"
|
| 14 |
)
|
| 15 |
|
| 16 |
-
#
|
| 17 |
custom_css = """
|
| 18 |
<style>
|
| 19 |
body {
|
| 20 |
background-color: #f5f5f5;
|
| 21 |
-
font-family: '
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
.stButton>button {
|
| 27 |
background-color: #4a90e2;
|
|
@@ -33,7 +40,7 @@ custom_css = """
|
|
| 33 |
background-color: #ffffff;
|
| 34 |
}
|
| 35 |
.stMarkdown, .css-1d391kg {
|
| 36 |
-
color: #
|
| 37 |
}
|
| 38 |
</style>
|
| 39 |
"""
|
|
@@ -47,9 +54,9 @@ source_choice = st.sidebar.multiselect("Select Data Sources", options=["ArXiv",
|
|
| 47 |
# Sidebar with features and footer
|
| 48 |
with st.sidebar:
|
| 49 |
st.divider()
|
| 50 |
-
st.markdown("<h3 style='
|
| 51 |
st.markdown("""
|
| 52 |
-
<ul style='list-style: none; padding: 0;'>
|
| 53 |
<li style='margin-bottom: 8px;'>🔍 <strong>Multi-Source Research Retrieval</strong></li>
|
| 54 |
<li style='margin-bottom: 8px;'>🤖 <strong>Integrated Chatbot Interaction</strong></li>
|
| 55 |
<li style='margin-bottom: 8px;'>✨ <strong>Advanced Summarization</strong></li>
|
|
@@ -58,7 +65,7 @@ with st.sidebar:
|
|
| 58 |
</ul>
|
| 59 |
""", unsafe_allow_html=True)
|
| 60 |
st.divider()
|
| 61 |
-
st.markdown("<p style='text-align: center;'><em>Built with Groq | Autogen</em></p>", unsafe_allow_html=True)
|
| 62 |
|
| 63 |
# Retrieve the API key from environment variables
|
| 64 |
groq_api_key = os.getenv("GROQ_API_KEY")
|
|
|
|
| 13 |
initial_sidebar_state="expanded"
|
| 14 |
)
|
| 15 |
|
| 16 |
+
# Updated Custom CSS: Set professional type text styling
|
| 17 |
custom_css = """
|
| 18 |
<style>
|
| 19 |
body {
|
| 20 |
background-color: #f5f5f5;
|
| 21 |
+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
| 22 |
+
color: #ffffff;
|
| 23 |
+
font-size: 16px;
|
| 24 |
+
line-height: 1.6;
|
| 25 |
}
|
| 26 |
+
h1, h2, h3, h4, h5, h6 {
|
| 27 |
+
font-weight: 600;
|
| 28 |
+
color: #ffffff;
|
| 29 |
+
}
|
| 30 |
+
.css-18e3th9, .css-1d391kg {
|
| 31 |
+
color: #ffffff;
|
| 32 |
}
|
| 33 |
.stButton>button {
|
| 34 |
background-color: #4a90e2;
|
|
|
|
| 40 |
background-color: #ffffff;
|
| 41 |
}
|
| 42 |
.stMarkdown, .css-1d391kg {
|
| 43 |
+
color: #ffffff;
|
| 44 |
}
|
| 45 |
</style>
|
| 46 |
"""
|
|
|
|
| 54 |
# Sidebar with features and footer
|
| 55 |
with st.sidebar:
|
| 56 |
st.divider()
|
| 57 |
+
st.markdown("<h3 style='color: #ffffff;'>Key Features</h3>", unsafe_allow_html=True)
|
| 58 |
st.markdown("""
|
| 59 |
+
<ul style='list-style: none; padding: 0; color: #ffffff; text-align: left;'>
|
| 60 |
<li style='margin-bottom: 8px;'>🔍 <strong>Multi-Source Research Retrieval</strong></li>
|
| 61 |
<li style='margin-bottom: 8px;'>🤖 <strong>Integrated Chatbot Interaction</strong></li>
|
| 62 |
<li style='margin-bottom: 8px;'>✨ <strong>Advanced Summarization</strong></li>
|
|
|
|
| 65 |
</ul>
|
| 66 |
""", unsafe_allow_html=True)
|
| 67 |
st.divider()
|
| 68 |
+
st.markdown("<p style='text-align: center; color:#ffffff;'><em>Built with Groq | Autogen</em></p>", unsafe_allow_html=True)
|
| 69 |
|
| 70 |
# Retrieve the API key from environment variables
|
| 71 |
groq_api_key = os.getenv("GROQ_API_KEY")
|