nonstopiodemo commited on
Commit
e9d36eb
Β·
verified Β·
1 Parent(s): 19ad0f7

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +8 -8
  2. requirements.txt +3 -0
  3. streamlit_app.py +12 -0
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- title: Counting
3
- emoji: πŸ‘
4
- colorFrom: yellow
5
- colorTo: blue
6
  sdk: streamlit
7
- sdk_version: 1.38.0
8
- app_file: app.py
9
  pinned: false
10
  ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
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