Spaces:
Runtime error
Runtime error
Download app.py from Samlit/simple_streamlit_app: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/Samlit/simple_streamlit_app/resolve/main/app.py
- Command line
-
hf download hf://spaces/Samlit/simple_streamlit_app/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Samlit/simple_streamlit_app/resolve/main/app.py
344 Bytes
| import streamlit as st | |
| import pandas as pd | |
| st.title("A Simple Streamlit Web App") | |
| name = st.text_input("Enter your name", "") | |
| st.write(f"Hello {name}!") | |
| x = st.slider("Select an integer x", 0, 10, 1) | |
| y = st.slider("Select an integer y", 0, 10, 1) | |
| df = pd.DataFrame({"x": [x], "y": [y] , "x + y": [x + y]}, index = ["addition row"]) | |
| st.write(df) |