Mengfei commited on
Commit
f187b02
1 Parent(s): 30db905

Add application file

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import numpy as np
4
+
5
+
6
+ st.title('Simple Streamlit App')
7
+
8
+ st.write("Here's our first attempt at using data to create a table:")
9
+
10
+ data = pd.DataFrame({
11
+ 'first column': np.arange(1, 5),
12
+ 'second column': np.power(10, np.arange(1, 5))
13
+ })
14
+ st.write(data)
15
+
16
+ if st.button('Say hello'):
17
+ st.write('Hello!')
18
+ else:
19
+ st.write('Press the button above.')