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

Add Streamlit demo

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -1,6 +1,12 @@
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)
 
 
 
 
 
 
 
 
 
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!")