| import streamlit as st |
|
|
|
|
| def dropdown_with_checkbox(): |
| |
| options = ["Fantasy", |
| "Science Fiction", |
| "Action & Adventure", |
| "Mystery", |
| "Horror", |
| "Thriller & Suspense", |
| "Historical Fiction", |
| "Romance", |
| "Magic", |
| "Novel", |
| "Short Story", |
| "Children’s", |
| "Memoir & Autobiography", |
| "Biography", |
| "Food & Drink", |
| "Art & Photography", |
| "History", |
| "Travel", |
| "True Crime", |
| "Humor", |
| "Religion", |
| "Science & Technology"] |
| selected_options = st.multiselect('Select Geners:', options) |
|
|
| return selected_options |
|
|
|
|
| def number_input(): |
| number = st.number_input("Enter a number between 1000 and 2023", min_value=1000, max_value=2023, step=1) |
|
|
| return number |
|
|
|
|
| def radio_button(): |
| options = ['', |
| 'Education', |
| 'Non Education'] |
| selected_option = st.radio('Enter Year:', options) |
|
|
| return selected_option |
|
|
|
|
| def radio_button2(): |
| options = ['All', |
| 'Custome Year'] |
| selected_option = st.radio('Select Option:', options) |
|
|
| return selected_option |
|
|
|
|
| def text_box(): |
| user_input = st.text_input('Enter topic name:') |
|
|
| return user_input |
|
|