Spaces:
Build error
Build error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def main():
|
| 4 |
+
st.title("Mood Checker")
|
| 5 |
+
|
| 6 |
+
name = st.text_input("What's your name?")
|
| 7 |
+
mood = st.selectbox("How are you feeling today?", ("Happy", "Sad", "Angry", "Excited", "Bored"))
|
| 8 |
+
|
| 9 |
+
if st.button("submit"):
|
| 10 |
+
st.write(f"Hello, {name}! You're feeling {mood}.")
|
| 11 |
+
|
| 12 |
+
if __name__ == "__main__":
|
| 13 |
+
main()
|