corvo7 commited on
Commit
504580e
·
verified ·
1 Parent(s): 5170cb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1,4 +1,15 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
2
  st.markdown("<h1 style='text-align: center; color: black;'>Data Analysis With Python 🕵</h1>", unsafe_allow_html=True)
3
 
4
 
@@ -6,6 +17,8 @@ st.markdown("<h1 style='text-align: center; color: black;'>Data Analysis With Py
6
 
7
 
8
  st.markdown("<h2 style='text-align: center; color: black;'>About the web app </h2>", unsafe_allow_html=True)
 
 
9
 
10
  # About the app section
11
  st.markdown("""
 
1
  import streamlit as st
2
+ import requests
3
+ from streamlit_lottie import st_lottie
4
+
5
+ def load_lottieurl(url: str):
6
+ r = requests.get(url)
7
+ if r.status_code != 200:
8
+ return None
9
+ return r.json()
10
+
11
+ lottie_data_analysis = load_lottieurl("https://assets2.lottiefiles.com/packages/lf20_4kx2q32n.json")
12
+
13
  st.markdown("<h1 style='text-align: center; color: black;'>Data Analysis With Python 🕵</h1>", unsafe_allow_html=True)
14
 
15
 
 
17
 
18
 
19
  st.markdown("<h2 style='text-align: center; color: black;'>About the web app </h2>", unsafe_allow_html=True)
20
+
21
+ st_lottie(lottie_data_analysis, height=300, key="data_analysis")
22
 
23
  # About the app section
24
  st.markdown("""