Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,28 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
st.title('Plot and track your vacations')
|
| 6 |
city_name = st.text_input('Please Input your Desired City:')
|
| 7 |
lat = st.text_input('Please Input the Latitude:' )
|
| 8 |
long = st.text_input('Please Input the Longitude:' )
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import requests
|
| 3 |
import pandas as pd
|
| 4 |
import numpy as np
|
| 5 |
+
from streamlit_lottie import st_lottie
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
st.title('Plot and track your vacations!')
|
| 9 |
+
|
| 10 |
+
def load_lottie_url(url: str):
|
| 11 |
+
r = requests.get(url)
|
| 12 |
+
if r.status_code != 200:
|
| 13 |
+
return None
|
| 14 |
+
return r.json()
|
| 15 |
+
|
| 16 |
+
def ShowAnimation(name, URL):
|
| 17 |
+
anim=load_lottie_url(URL)
|
| 18 |
+
st_lottie(anim, key = name)
|
| 19 |
+
|
| 20 |
+
ShowAnimation("Badge1","https://assets2.lottiefiles.com/packages/lf20_jte9hafx.json")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
|
|
|
|
| 26 |
city_name = st.text_input('Please Input your Desired City:')
|
| 27 |
lat = st.text_input('Please Input the Latitude:' )
|
| 28 |
long = st.text_input('Please Input the Longitude:' )
|