Skip to content

Commit

Permalink
location
Browse files Browse the repository at this point in the history
  • Loading branch information
atulraj85 committed May 23, 2023
0 parents commit 2ff0128
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions evaltest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import streamlit as st
from streamlit_js_eval import get_geolocation
import json


if st.checkbox("Check my location"):
loc = get_geolocation()
st.write(f"Your coordinates are {loc}")
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
streamlit==1.22.0
streamlit-js-eval==0.1.5

0 comments on commit 2ff0128

Please sign in to comment.