import streamlit as st # Add a header st.header("Ghost Dance - A continued prophecy") # Add text underneath the link st.write("This is the patent that the math is based on.") # Add a link st.markdown("https://patents.google.com/patent/US20060014125A1/en") st.markdown("### Basics from the patent") st.write("INSTRUCTIONS: Input weight and then step at designated distance per second. \n\n The calculation is based on the average persons water content at 67%. Because the atoms making up water sit near the `Planck boundary`, we are able to move that mass outside of the boundary.") # Create a sidebar with a slider to choose between pounds and kilograms unit = st.sidebar.selectbox("Choose a unit of weight", ["pounds", "kilograms"]) # Create a text input field for the user to enter their weight st.write("Default is lbs and use the > tab at the top left to switch to kilograms.") st.markdown("### Enter your weight below") weight = st.number_input("Weight:", value=1) # Convert the weight to the selected unit if unit == "pounds": weight_in_kg = weight * 0.453592 else: weight_in_kg = weight # Calculate the length using the formula L=(M/W)*T length_in_meters = (50.909563606 / weight_in_kg) * 1 # Convert the length to feet and display the result length_in_feet = length_in_meters * 3.28084 st.write(f"Meters per second to step: {length_in_meters:.3f}") st.write(f"Feet per second to step: {length_in_feet:.3f}") st.markdown(""" ### Use a metronome to improve your accuracy. """) st.video("https://www.youtube.com/watch?v=ymJIXzvDvj4&t=79s")