Smart-AI-Tools / app.py
AIROBOHUB's picture
Update app.py
05a82ee verified
Raw History Blame Contribute Delete
2.27 kB
import streamlit as st
import sentiment_analysis
import text_summary
def main():
st.set_page_config(page_title="AI ROBO HUB - Smart AI Tools", layout="wide")
# Custom styling
st.markdown(
"""
<style>
.sidebar .sidebar-content {
background-color: #1f1f2e;
color: white;
}
.stButton>button {
width: 100%;
border-radius: 10px;
background-color: #0073e6;
color: white;
font-size: 16px;
}
.stButton>button:hover {
background-color: #005bb5;
}
.block-container {
padding-top: 2rem;
}
</style>
""",
unsafe_allow_html=True,
)
# Sidebar navigation
st.sidebar.title("πŸš€ AI ROBO HUB - Smart AI Tools")
st.sidebar.markdown("### Select Functionality")
app_mode = st.sidebar.radio("", ["Sentiment Analysis", "Text Summary"], index=0)
# Main Content Section
st.markdown("<h1 style='text-align: center; color: #0073e6;'>Welcome to AI ROBO HUB </h1>", unsafe_allow_html=True)
st.markdown("<h3 style='text-align: center; color: #444;'>We provide end-to-end AI Apps Development</h3>",
unsafe_allow_html=True)
st.markdown("---")
# Load respective module
if app_mode == "Sentiment Analysis":
sentiment_analysis.run()
elif app_mode == "Text Summary":
text_summary.run()
# Footer Section
st.markdown("---")
st.markdown(
"""
<div style="text-align: center; padding: 10px; background-color: #1f1f2e; color: white; border-radius: 10px;">
<h4>πŸš€ Looking for AI-Powered Custom Solutions?</h4>
<p>We specialize in AI-driven automation, sentiment analysis, text summarization, and more.</p>
<p>πŸ“© Contact us today at <a href="mailto:airobohub@gmail.com" style="color: #f8c471;">airobohub@gmail.com</a></p>
<p>🌐 Visit our website: <a href="https://www.airobohub.com" target="_blank" style="color: #f8c471;">www.airobohub.com</a></p>
</div>
""",
unsafe_allow_html=True
)
if __name__ == "__main__":
main()