Spaces:
Sleeping
Sleeping
File size: 708 Bytes
78b6d28 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
st.title("Topanga Beach Surfer Counter")
st.write(
"This application will grab the latest 10s clip of surfers from the Topanga Beach surf cam"
"and count the number of surfers there."
)
st.write("Please enter your LandingLens API key and Cloud Inference Endpoint ID.")
api_key = st.text_input(
"LandingLens API Key", value=st.session_state.get("api_key", "")
)
endpoint_id = st.text_input(
"Cloud Inference Endpoint ID",
value=st.session_state.get("endpoint_id", ""),
)
def save(api_key: str, endpoint_id: str):
st.session_state["api_key"] = api_key
st.session_state["endpoint_id"] = endpoint_id
st.button("Save", on_click=save(api_key, endpoint_id))
|