File size: 1,803 Bytes
896d93f b47ded9 ceeea91 896d93f b47ded9 ceeea91 b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 896d93f b47ded9 cd107f2 b47ded9 896d93f cd107f2 ceeea91 8a24d03 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
import streamlit as st
import pickle
# @st.cache(allow_output_mutation=True)
hide_streamlit_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style>
"""
# st.markdown('<center style="opacity: 70%">OR</center>', 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.')
|