andreska commited on
Commit
c0f0d4c
·
verified ·
1 Parent(s): e3d287a

Added input and update button

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
1
  import streamlit as st
2
 
3
+ st.title("Adrega AI Help")
4
+ user_input = st.text_input('Ask me a question')
5
+ if st.button("Submit"):
6
+ st.write(f"You entered: {user_input}")