import streamlit as st
import pandas as pd
import base64
import json
from st_pages import Page, Section, show_pages, add_page_title,add_indentation
st.set_page_config(
page_title="app",
page_icon="📈",
)
st.markdown("
Welcome to DataAI! 👋
", unsafe_allow_html=True)
def get_base64_of_bin_file(png_file):
with open(png_file, "rb") as f:
data = f.read()
return base64.b64encode(data).decode()
def build_markup_for_logo(
png_file,
background_position="0% 0%",
margin_top="5%",
image_width="60%",
image_height="",
):
binary_string = get_base64_of_bin_file(png_file)
return """
""" % (
binary_string,
background_position,
margin_top,
image_width,
image_height,
)
def add_logo(png_file):
logo_markup = build_markup_for_logo(png_file)
st.markdown(
logo_markup,
unsafe_allow_html=True,
)
add_logo("logoo.png")
paragraph = """
As a data AI team, our capabilities are demonstrated through the functionalities showcased on our demo site.
The team has developed a diverse set of applications that leverage artificial intelligence and machine learning techniques.
The "Home" page serves as a central hub, providing access to various sections.
Within the "GenAI" section, we showcase advanced technologies such as an AI Chatbot, auto code generation, report generation, and score generation.
The "Deep Learning" section features demonstrations in image analytics, video analytics, and speech recognition.
In the "Machine Learning" section, we exhibit our proficiency in regression, forecasting, clustering, and optimization.
Our team's expertise lies in delivering innovative solutions that harness the power of data and AI, addressing a wide range of challenges and applications.
"""
# Display the paragraph with black color within a Streamlit HTML element
st.markdown(paragraph, unsafe_allow_html=True)
st.markdown("What is GenAI?!!! ", unsafe_allow_html=True)
g_p = """"GenAI" stands for "General Artificial Intelligence," which refers to the concept of developing intelligent systems capable of performing tasks across a broad spectrum of domains, similar to the versatility and adaptability observed in human intelligence. In a short summary, "GenAI" embodies the pursuit of creating AI systems that can comprehend, learn, and apply knowledge across various contexts, aiming for a more generalized and flexible form of artificial intelligence."""
st.markdown(g_p, unsafe_allow_html=True)
st.markdown("What is Deep Learning?!!! ", unsafe_allow_html=True)
d_l = """Deep learning is a subfield of machine learning that involves training artificial neural networks with multiple layers (deep neural networks) to perform tasks such as image and speech recognition, natural language processing, and other complex pattern recognition tasks. The depth of the network allows it to automatically learn hierarchical representations of data, extracting features at different levels of abstraction. Deep learning has shown remarkable success in various applications, especially when dealing with large amounts of data, enabling the development of sophisticated models for complex tasks."""
st.markdown(d_l, unsafe_allow_html=True)
st.markdown("What is Machine Learning?!!! ", unsafe_allow_html=True)
m_l = """Machine learning is a branch of artificial intelligence (AI) that focuses on developing algorithms and models that enable computers to learn patterns and make predictions or decisions without being explicitly programmed. It involves the use of data to train algorithms, allowing machines to improve their performance on a specific task over time. Machine learning is applied in various domains, including image and speech recognition, natural language processing, recommendation systems, and more, to extract insights, recognize patterns, and make predictions based on input data."""
st.markdown(m_l, unsafe_allow_html=True)
footer="""
"""
st.markdown(footer,unsafe_allow_html=True)
main_bg_ext = "jpg"
main_bg = "vally4.jpg"
st.markdown(
f"""
""",
unsafe_allow_html=True
)
add_indentation()
# Specify what pages should be shown in the sidebar, and what their titles and icons
# should be
show_pages(
[
Page("app.py", "Home", "🏠"),
Section("GenAI", icon="🤖"),
Page("pages/AI_Chatbot.py", "AI Chatbot", "📈",in_section=True),
# Pages after a section will be indented
Page("pages/Auto_Code_Generation.py", "Auto Code Generation", "📈"),
Page("pages/Auto_Report_Generation.py", "Auto Report Generation", "📈"),
Page("pages/Auto_Score_Generation.py", "Auto Score Generation", "📈"),
Page("pages/core_risk.py", "Core Risk Classification", "📈"),
Page("pages/jury_records.py", "Jury Records", "📈"),
Page("pages/topic_classification.py", "Topic Classification", "📈"),
Section("Deep Learning", icon="🤖"),
Page(path = "pages/deep_learning_demo.py", name = "Image Analytics", icon = "📈"),
Page(path = "pages/deep_learning_demo2.py",name = "Video Analytics", icon ="📈"),
Page(path = "pages/deep_learning_demo3.py",name = "Speech Recognization", icon = "📈"),
Section("Machine Learning", icon="🤖"),
Page(path = "pages/machine_learning_demo.py",name = "Regression", icon = "📈"),
Page(path = "pages/machine_learning_demo2.py",name = "Forecasting", icon = "📈"),
Page(path = "pages/machine_learning_demo3.py",name = "Clustering", icon = "📈"),
Page(path = "pages/machine_learning_demo4.py",name = "Optimization", icon ="📈")
]
)