Shunfeng Zheng commited on
Commit
db1d169
·
1 Parent(s): 9a07a06

Add Streamlit demo

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -1,12 +1,6 @@
 
1
  import streamlit as st
2
 
3
- st.title("Spatial Parser Demo")
4
-
5
- password = st.text_input("Enter access password:", type="password")
6
-
7
- if password != "demo1234":
8
- st.warning("Please enter the correct password to continue.")
9
- st.stop()
10
-
11
- # 👇真实内容放在这下面
12
- st.write("Welcome to the demo!")
 
1
+ # app.py
2
  import streamlit as st
3
 
4
+ st.title("Spatial Parse Demo")
5
+ x = st.slider('Select a value')
6
+ st.write(x, 'squared is', x * x)