Spaces:
No application file
No application file
Download practise1.py from imranjamal/lesson1: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/imranjamal/lesson1/resolve/main/practise1.py
- Command line
-
hf download hf://spaces/imranjamal/lesson1/practise1.py
-
curl -L -o practise1.py https://huggingface.co/spaces/imranjamal/lesson1/resolve/main/practise1.py
294 Bytes
| import streamlit as st | |
| st.title("Hello World!") | |
| st.write("This is my first Streamlit app on Hugging Face Spaces.") | |
| name = st.text_input("Enter your name:") | |
| age = st.slider("Select your age:", 0, 100, 25) | |
| if st.button("Submit"): | |
| st.write(f"Hello {name}, you are {age} years old!") | |