Spaces:
Runtime error
Runtime error
zarha.roozbehi
commited on
Commit
•
d48197a
1
Parent(s):
3b36e56
first commit
Browse files- README.md +4 -4
- app.py +9 -0
- requirements.txt +4 -0
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.10.0
|
8 |
app_file: app.py
|
|
|
1 |
---
|
2 |
+
title: Simple Streamlit App
|
3 |
+
emoji: 💻
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.10.0
|
8 |
app_file: app.py
|
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,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
numpy
|
3 |
+
pandas
|
4 |
+
plotly
|