Spaces:
Build error
Build error
first commit
Browse files- app.py +14 -0
- requirements.txt +2 -0
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
+
|
| 4 |
+
st.title("A Simple Streamlit Web App")
|
| 5 |
+
|
| 6 |
+
name = st.text_input("Enter your name", '')
|
| 7 |
+
|
| 8 |
+
st.write(f"Hello {name}!")
|
| 9 |
+
|
| 10 |
+
x = st.slider("Select an integer a", 0, 10, 1)
|
| 11 |
+
y = st.slider("Select an integer b", 0, 10, 1)
|
| 12 |
+
|
| 13 |
+
df = pd.DataFrame({"x": [x], "y": [y] , "x + y": [x + y]}, index = ["addition row"])
|
| 14 |
+
st.write(df)
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
| 2 |
+
pandas
|