embed786 commited on
Commit
c43c95a
Β·
verified Β·
1 Parent(s): 67c8b76

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Page setup
4
+ st.set_page_config(page_title="Hello World App", page_icon="πŸ‘‹", layout="centered")
5
+
6
+ # Simple UI
7
+ st.title("πŸ‘‹ Hello, Hugging Face + Streamlit!")
8
+ st.write("If you see this message, your Space is working correctly πŸš€")
9
+
10
+ name = st.text_input("What's your name?")
11
+ if st.button("Say Hello"):
12
+ if name.strip():
13
+ st.success(f"Hello, {name}! πŸŽ‰")
14
+ else:
15
+ st.warning("Please enter your name above πŸ‘†")