ghostDance / app.py
Nbiish Kenwabikise
Rename escape_Plancks_Box.py to app.py
a7c4247
raw
history blame
1.11 kB
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")
# 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
weight = st.number_input("Enter your 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}")
st.write(f"Feet per second to step: {length_in_feet}")
st.markdown("""
### Use a metronome to improve your accuracy.
""")
st.video("https://www.youtube.com/watch?v=ymJIXzvDvj4&t=79s")