doyu commited on
Commit
7e87957
·
1 Parent(s): 2cc21ca

Add application file

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ st.title(“A Simple Streamlit Web App”)
4
+ name = st.text_input(“Enter your name”, ‘’)
5
+ st.write(f”Hello {name}!”)
6
+ x = st.slider(“Select an integer x”, 0, 10, 1)
7
+ y = st.slider(“Select an integer y”, 0, 10, 1)
8
+ df = pd.DataFrame({“x”: [x], “y”: [y] , “x + y”: [x + y]}, index = [“addition row”])
9
+ st.write(df)
10
+
11
+