Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- README.md +8 -8
- requirements.txt +1 -0
- streamlit_app.py +13 -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: game
|
| 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 |
+
# game
|
| 12 |
+
This is a Streamlit app generated and deployed automatically.
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
streamlit_app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def add_numbers(num1, num2):
|
| 4 |
+
return num1 + num2
|
| 5 |
+
|
| 6 |
+
st.title('Addition of Two Numbers')
|
| 7 |
+
|
| 8 |
+
num1 = st.number_input('Enter the first number:')
|
| 9 |
+
num2 = st.number_input('Enter the second number:')
|
| 10 |
+
|
| 11 |
+
result = add_numbers(num1, num2)
|
| 12 |
+
|
| 13 |
+
st.write('The result of adding {} and {} is: {}'.format(num1, num2, result))
|