Spaces:
Build error
Build error
Download DropdownSelection.py from fahadriazkhan/Lesson1: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/DropdownSelection.py
- Command line
-
hf download hf://spaces/fahadriazkhan/Lesson1/DropdownSelection.py
-
curl -L -o DropdownSelection.py https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/DropdownSelection.py
241 Bytes
| # Example 2 : Dropdown Selection | |
| st.title("Dropdown Selection Example") | |
| # Dropdown menu | |
| options = ("Python", "JavaScript", "Java", "C++") | |
| chioce = st.selectbox("Choose a programming language :",options) | |
| st.write(f"You selected: {chioce}!") |