import streamlit as st import pickle # @st.cache(allow_output_mutation=True) hide_streamlit_style = """ """ # st.markdown('
OR
', unsafe_allow_html=True) st.markdown(hide_streamlit_style, unsafe_allow_html=True) st.title('MedicBot') # w1=0 # w2=0 # w3=0 # lt=[] st.markdown('#### Welcome may I know your symptoms:') # global w1,w2,w3 lt=[] qq1 = st.selectbox("Feeling dizzy or tierd: ", ('No', 'Yes')) q1=0 qq2=st.selectbox("Feeling hungry more often than useual: ", ('No', 'Yes')) q2=0 qq3=st.selectbox("Having a blurryvision recently: ", ('No', 'Yes')) q3=0 qq4=st.selectbox("Having chest pain",('No', 'Yes')) q4=0 qq5=st.selectbox("Gender",('Male', 'Female')) q5=0 qq6=st.selectbox("Asyncronus heart rythm:",('No', 'Yes')) q6=0 qq7=st.selectbox("Cough?",('No', 'Yes')) q7=0 qq8=st.selectbox("Throat soarness?",('No', 'Yes')) q8=0 qq9=st.selectbox("Loss in smell or taste?",('No', 'Yes')) q9=0 if(st.button('Submit.')): if (qq1 == 'Yes'): q1=1 if (qq2=='Yes'): q2=1 if (qq3=='Yes'): q3=1 if (qq4=='Yes'): q4=1 if (qq5=='Female'): q5=1 if (qq6=='Yes'): q6=1 if (qq7=='Yes'): q7=1 if (qq8=='Yes'): q8=1 if (qq9=='Yes'): q9=1 # w1=int(q1)+int(q2)+int(q3) # w2=int(q5)+int(q6)+int(q4) # w3=int(q7)+int(q8)+int(q9) # pred() lt=[q1,q2,q3,q4,q5,q6,q7,q8,q9] # return lt[0] i=lt if sum(i)>=len(i)//2: st.write('') st.write('It\'s better if reach out to Physician') else: st.write('') st.write('You may take some self care and reachout to a doctor if you feel so.')