Spaces:
Build error
Build error
Download UserInput&Button.py from fahadriazkhan/Lesson1: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/UserInput%26Button.py
- Command line
-
hf download 'hf://spaces/fahadriazkhan/Lesson1/UserInput&Button.py'
-
curl -L -o 'UserInput&Button.py' https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/UserInput%26Button.py
258 Bytes
| # Example 1 : Text Input and Button | |
| st.title("Interactive App : User Input") | |
| # Text Input Feild | |
| name = st.text_input("Enter your name:") | |
| # Create Button | |
| if st.button("Greet"): | |
| st.write(f"Hello, {name}! Welcome to your first interactive Streamlit app.") |