Download app.py from Aniketar/test: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/Aniketar/test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Aniketar/test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Aniketar/test/resolve/main/app.py
332 Bytes
| # Assisted by watsonx Code Assistant | |
| import streamlit as st | |
| # Title | |
| st.title('User Information Form') | |
| # Get user inputs | |
| first_name = st.text_input('First Name') | |
| last_name = st.text_input('Last Name') | |
| # Submit button | |
| if st.button('Submit'): | |
| st.balloons() | |
| st.success(f'Hello, {first_name} {last_name}. Nice to meet you!') | |