import streamlit as st
import pandas as pd
import base64
import json
st.set_page_config(
page_title="app",
page_icon="📈",
)
st.markdown("
Welcome to DataAI! 👋
", unsafe_allow_html=True)
st.sidebar.success("Select a demo above.")
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="50% 10%",
margin_top="10%",
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")
st.markdown("This is the demo for the usecases we've worked on.", unsafe_allow_html=True)
st.markdown("Select a demo from the sidebar to see some examples of what we can do!!!
", 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
)