mindexplorer commited on
Commit
4e539f7
Β·
verified Β·
1 Parent(s): de32d3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -81,7 +81,7 @@ if uploaded_file is not None:
81
  predicted_disease = disease_classes[predicted_index[0]]
82
 
83
  if(predicted_disease=='Healthy'):
84
- image = Image.open('Assets\Healthy.gif')
85
  st.image(image)
86
  st.write(f'Disease: No Disease')
87
  st.write('Cause:', 'No Infection')
@@ -96,7 +96,7 @@ if uploaded_file is not None:
96
  st.header('Extra Information πŸ’‰',divider='violet')
97
  st.subheader("Nothing Required, You are Healthy! πŸŽ‰πŸŽ‰πŸŽ‰")
98
  elif(predicted_disease=='Other'):
99
- image = Image.open('Assets\Infected.gif')
100
  st.image(image)
101
  st.header('Possible Disease 🦠',divider='violet')
102
  st.subheader("URTI, Bronchitis, LRTI, Pneumonia, Asthma")
@@ -108,7 +108,7 @@ if uploaded_file is not None:
108
  st.header('Extra Information πŸ’‰',divider='violet')
109
  st.subheader('fast breathing, shortness of breath, wheezing, difficulty breathing, or shallow breathing Whole body: dehydration, fever, loss of appetite, or malaise Also common: coughing or nasal congestion')
110
  elif(predicted_disease=='COPD'):
111
- image = Image.open('Assets\RESPIRATORY-DISORDERS-.jpg')
112
  st.image(image)
113
  _COPD_ = """
114
  A group of lung diseases that block airflow and make it difficult to breathe.
@@ -132,5 +132,5 @@ if uploaded_file is not None:
132
  st.subheader("Treatment is self care and bronchodilators to prevent flare ups and manage symptoms. Rescue inhalers and inhaled or oral steroids can help control symptoms and minimize further damage.",
133
  "Please Consult with Primary Care Provider")
134
  if st.button("More"):
135
- path='Assets\COPD.png'
136
  st.write_stream(stream_data(_COPD_,path,_INFO_))
 
81
  predicted_disease = disease_classes[predicted_index[0]]
82
 
83
  if(predicted_disease=='Healthy'):
84
+ image = Image.open('Assets/Healthy.gif')
85
  st.image(image)
86
  st.write(f'Disease: No Disease')
87
  st.write('Cause:', 'No Infection')
 
96
  st.header('Extra Information πŸ’‰',divider='violet')
97
  st.subheader("Nothing Required, You are Healthy! πŸŽ‰πŸŽ‰πŸŽ‰")
98
  elif(predicted_disease=='Other'):
99
+ image = Image.open('Assets/Infected.gif')
100
  st.image(image)
101
  st.header('Possible Disease 🦠',divider='violet')
102
  st.subheader("URTI, Bronchitis, LRTI, Pneumonia, Asthma")
 
108
  st.header('Extra Information πŸ’‰',divider='violet')
109
  st.subheader('fast breathing, shortness of breath, wheezing, difficulty breathing, or shallow breathing Whole body: dehydration, fever, loss of appetite, or malaise Also common: coughing or nasal congestion')
110
  elif(predicted_disease=='COPD'):
111
+ image = Image.open('Assets/RESPIRATORY-DISORDERS-.jpg')
112
  st.image(image)
113
  _COPD_ = """
114
  A group of lung diseases that block airflow and make it difficult to breathe.
 
132
  st.subheader("Treatment is self care and bronchodilators to prevent flare ups and manage symptoms. Rescue inhalers and inhaled or oral steroids can help control symptoms and minimize further damage.",
133
  "Please Consult with Primary Care Provider")
134
  if st.button("More"):
135
+ path='Assets/COPD.png'
136
  st.write_stream(stream_data(_COPD_,path,_INFO_))