Hello-Leader / app.py
Illioa's picture
Add 4 files
ae2ef66
import streamlit as st
import numpy as np
# Set page title and layout
st.title("Hello Leader")
# Add a sidebar to select a theme
st.sidebar.title("Themes")
theme_options = ["green", "blue", "red"]
selected_theme = st.sidebar.selectbox("Select a theme", theme_options)
# Add a convert button to convert the input
convert_button = st.button("Convert")
# Add an input field to enter the number
number_input = st.number_input("Enter a number")
# Add a label to display the converted number
converted_number = st.number_input("Converted number")
# Add a header to display the result
result = st.header("Result")
# Add a button to reset the input fields
reset_button = st.button("Reset")
# Add a message to inform the user that the input fields have been reset
reset_message = st.title("Input fields have been reset")
# Set the theme based on the selected theme
def set_theme(theme):
# Set the page title and header color based on the selected theme
if theme == "green":
st.title("Hello Leader", header_color="green")