Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- README.md +8 -8
- requirements.txt +3 -0
- streamlit_app.py +12 -0
README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: streamlit
|
| 7 |
-
sdk_version: 1.
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
title: counting
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: streamlit
|
| 7 |
+
sdk_version: "1.10.0"
|
| 8 |
+
app_file: streamlit_app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
+
# counting
|
| 12 |
+
This is a Streamlit app generated and deployed automatically.
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
| 2 |
+
altair==4.2.0
|
| 3 |
+
vega_datasets
|
streamlit_app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
# Initialize a counter variable
|
| 4 |
+
if 'counter' not in st.session_state:
|
| 5 |
+
st.session_state.counter = 0
|
| 6 |
+
|
| 7 |
+
# Display the current count
|
| 8 |
+
st.write("Number of clicks:", st.session_state.counter)
|
| 9 |
+
|
| 10 |
+
# Button to increment the counter
|
| 11 |
+
if st.button("Click me!"):
|
| 12 |
+
st.session_state.counter += 1
|