rasmodev commited on
Commit
53c53e9
ยท
1 Parent(s): 7001efb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -143,22 +143,6 @@ if st.button("๐Ÿ”ฎ Predict Sepsis"):
143
  except Exception as e:
144
  st.error(f"An error occurred: {e}")
145
 
146
- # Predict Button with Style
147
- if st.button("๐Ÿ”ฎ Predict Sepsis"):
148
- try:
149
- input_data_scaled_df = preprocess_input_data(input_data)
150
- sepsis_status = make_predictions(input_data_scaled_df)
151
-
152
- # Display output with color based on prediction
153
- if sepsis_status == 'Negative':
154
- st.success(f"The predicted sepsis status is: {sepsis_status}")
155
- elif sepsis_status == 'Positive':
156
- st.error(f"The predicted sepsis status is: {sepsis_status}")
157
-
158
- except Exception as e:
159
- st.error(f"An error occurred: {e}")
160
-
161
-
162
  # Display Data Fields and Descriptions
163
  st.sidebar.title("๐Ÿ” Data Fields")
164
  for field, description in data_fields.items():
 
143
  except Exception as e:
144
  st.error(f"An error occurred: {e}")
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  # Display Data Fields and Descriptions
147
  st.sidebar.title("๐Ÿ” Data Fields")
148
  for field, description in data_fields.items():