Spaces:
Sleeping
Sleeping
sonali-tamhankar
commited on
Commit
•
db27de3
1
Parent(s):
673034d
Create app.py directly on huggingface
Browse files
app.py
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# https://www.youtube.com/watch?v=VqgUkExPvLY
|
2 |
+
# Sven - Build a website in 12 minutes using python and streamlit
|
3 |
+
|
4 |
+
import requests
|
5 |
+
import streamlit as st
|
6 |
+
from streamlit_lottie import st_lottie
|
7 |
+
|
8 |
+
st.set_page_config(page_title="Sonali's Webpage", page_icon = ":tada:", layout = "wide")
|
9 |
+
|
10 |
+
def load_lottieurl(url):
|
11 |
+
r = requests.get(url)
|
12 |
+
if r.status_code != 200:
|
13 |
+
return None
|
14 |
+
return r.json()
|
15 |
+
|
16 |
+
#lottie_coding = load_lottieurl("https://lottie.host/?file=ad42b5ea-1aef-4dbd-9254-962192746370/5rKO2onOpb.json")
|
17 |
+
lottie_coding = load_lottieurl("https://assets5.lottiefiles.com/packages/lf20_fcfjwiyb.json")
|
18 |
+
|
19 |
+
with st.container():
|
20 |
+
st.subheader("Hi, this is Sonali :wave:")
|
21 |
+
st.title("A Data Scientist from Seattle")
|
22 |
+
st.write("[Check out my meetup](https://www.meetup.com/destination-health-equity/)")
|
23 |
+
|
24 |
+
with st.container():
|
25 |
+
st.write("---")
|
26 |
+
left_column, right_column = st.columns(2)
|
27 |
+
with left_column:
|
28 |
+
st.header("Our Community")
|
29 |
+
st.write("##")
|
30 |
+
st.write(
|
31 |
+
"""
|
32 |
+
We have participants from diverse fields. They are wonderful!! """
|
33 |
+
)
|
34 |
+
with right_column:
|
35 |
+
st_lottie(lottie_coding, height = 300, key = "coding")
|