Spaces:
Build error
Build error
Download Multi_select.py from fahadriazkhan/Lesson1: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/Multi_select.py
- Command line
-
hf download hf://spaces/fahadriazkhan/Lesson1/Multi_select.py
-
curl -L -o Multi_select.py https://huggingface.co/spaces/fahadriazkhan/Lesson1/resolve/main/Multi_select.py
238 Bytes
| import streamlit as st | |
| st.title("Multi-Select Example") | |
| # Multi-select widget | |
| hobbies = st.multiselect("Select your hobbies:", ["Reading", "Traveling", "Cooking", "Gaming"]) | |
| st.write(f"Your selected hobbies are: {', '.join(hobbies)}") | |