doyu commited on
Commit
91a5ae0
Β·
1 Parent(s): 6e7b831
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,11 +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
 
 
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