Spaces:
Sleeping
Sleeping
Download app.py from AIROBOHUB/Smart-AI-Tools: direct link, hf CLI and curl.
- Browser
- Download file 2.27 kB
-
https://huggingface.co/spaces/AIROBOHUB/Smart-AI-Tools/resolve/main/app.py
- Command line
-
hf download hf://spaces/AIROBOHUB/Smart-AI-Tools/app.py
-
curl -L -o app.py https://huggingface.co/spaces/AIROBOHUB/Smart-AI-Tools/resolve/main/app.py
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() | |