Replicate the app from the image.
To upload files, please first save the app
import streamlit as st
import pandas as pd
import plotly.graph_objects as go
def main():
st.set_page_config(layout='wide')
st.title('Mille GPG | Governo Clinico')
with st.sidebar:
st.header('Menu')
st.button('GPG Self-Service')
st.button('GPG Community')
st.button('GPG Tutor')
st.button('GPG Formazione')
st.header('Search Patient')
patient = st.text_input('Cerca paziente')
st.header('Indicators')
col1, col2, col3 = st.columns(3)
with col1:
st.metric(label='GPG Score', value='62.2')
with col2:
st.metric(label='iTOT Score', value='57.52')
with col3:
st.metric(label='Rischio Clinico', value='Moderato')
st.subheader('Main Indicators')
indicators = {
'Indicator Principali': [70, 60, 80],
'Rischio Clinico': [50, 40, 30],
'Vaccinazioni': [85, 90, 80],
}
df = pd.DataFrame(indicators)
st.table(df)
st.subheader('Data Visualization')
fig = go.Figure()
fig.add_trace(go.Indicator(
mode='number+gauge',
value=62.2,
title={'text': 'GPG Score'},
gauge={'axis': {'range': [0, 100]}}
))
fig.add_trace(go.Indicator(
mode='number+gauge',
value=57.52,
title={'text': 'iTOT Score'},
gauge={'axis': {'range': [0, 100]}}
))
st.plotly_chart(fig)
if __name__ == '__main__':
main()
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?