Spaces:
Sleeping
Sleeping
Upload Hello.py
Browse files
Hello.py
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
st.set_page_config(
|
5 |
+
page_title="Hello",
|
6 |
+
page_icon="👋",
|
7 |
+
)
|
8 |
+
|
9 |
+
st.write("# Welcome to DataAI! 👋")
|
10 |
+
|
11 |
+
st.sidebar.success("Select a demo above.")
|
12 |
+
|
13 |
+
st.markdown(
|
14 |
+
"""
|
15 |
+
This is the demo for the usecases we've worked on.
|
16 |
+
**👈 Select a demo from the sidebar** to see some examples
|
17 |
+
of what we can do!!! """
|
18 |
+
)
|
19 |
+
|
20 |
+
import base64
|
21 |
+
|
22 |
+
main_bg_ext = "jpg"
|
23 |
+
main_bg = "C:/Users/Meet/Downloads/vally.jpg"
|
24 |
+
|
25 |
+
st.markdown(
|
26 |
+
f"""
|
27 |
+
<style>
|
28 |
+
.stApp {{
|
29 |
+
background: url(data:image/{main_bg_ext};base64,{base64.b64encode(open(main_bg, "rb").read()).decode()});
|
30 |
+
background-size: cover
|
31 |
+
}}
|
32 |
+
</style>
|
33 |
+
""",
|
34 |
+
unsafe_allow_html=True
|
35 |
+
)
|