CoolFace
Apppublic

pythontester/stream

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
app.py14 linesDownload Raw Back to root
1import streamlit as st2import pandas as pd3 4st.title("A Simple Streamlit Web App")5 6name = st.text_input("Enter your name", '')7 8st.write(f"Hello {name}!")9 10x = st.slider("Select an integer x", 0, 10, 1)11y = st.slider("Select an integer y", 0, 10, 1)12 13df = pd.DataFrame({"x": [x], "y": [y] , "x + y": [x + y]}, index = ["addition row"])14st.write(df)