Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
print("If velocity value is positive, object is travelling to the right.")
|
| 2 |
print("If velocity value is negative, object is travelling in the opposite direction to the left.")
|
| 3 |
|
|
|
|
| 1 |
+
st.title("Self Learn Kinematics")
|
| 2 |
+
|
| 3 |
+
if "my_text" not in st.session_state:
|
| 4 |
+
st.session_state.my_text = ""
|
| 5 |
+
|
| 6 |
+
def submit():
|
| 7 |
+
st.session_state.my_text = st.session_state.widget
|
| 8 |
+
st.session_state.widget = ""
|
| 9 |
+
|
| 10 |
+
st.text_input("Enter text here", key="widget", on_change=submit)
|
| 11 |
+
|
| 12 |
+
query = st.session_state.my_text
|
| 13 |
+
|
| 14 |
+
st.sidebar.image(logo_url, caption="Practice makes perfect.", use_column_width=True)
|
| 15 |
+
|
| 16 |
+
if 'responses' not in st.session_state:
|
| 17 |
+
st.session_state['responses'] = []
|
| 18 |
+
|
| 19 |
+
if 'requests' not in st.session_state:
|
| 20 |
+
st.session_state['requests'] = []
|
| 21 |
+
|
| 22 |
print("If velocity value is positive, object is travelling to the right.")
|
| 23 |
print("If velocity value is negative, object is travelling in the opposite direction to the left.")
|
| 24 |
|