Samlit commited on
Commit
a0f3302
·
1 Parent(s): 10dbcd3

first commit

Browse files
Files changed (2) hide show
  1. app.py +9 -0
  2. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
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)
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit
2
+ pandas