nonstopiodemo commited on
Commit
79d4906
Β·
verified Β·
1 Parent(s): 94fd1dc

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 +13 -0
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- title: GenAI
3
- emoji: πŸƒ
4
- colorFrom: pink
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: genAI
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
+ # genAI
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,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def addition(num1, num2):
4
+ return num1 + num2
5
+
6
+ st.title('Addition of Two Numbers')
7
+
8
+ num1 = st.number_input('Enter first number:', value=0)
9
+ num2 = st.number_input('Enter second number:', value=0)
10
+
11
+ result = addition(num1, num2)
12
+
13
+ st.write('The result of addition is:', result)