Bhupen commited on
Commit
88eb883
Β·
1 Parent(s): c85d27d

Add Deep Learning intro py file

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -160,16 +160,16 @@ def main():
160
  st.write(f"R-squared (Deep Model R2): {r2_deep:.2f}")
161
 
162
  # Show the model summary
163
- st.markdown("**Deep Learning Model Summary**")
164
- plot_path = "deep_model_plot.png"
165
- plot_model(deep_model, to_file=plot_path, show_shapes=True, show_layer_names=True)
166
-
167
- # Display the plot in Streamlit
168
- if os.path.exists(plot_path):
169
- image = Image.open(plot_path)
170
- st.image(image, caption="Keras Sequential Model Architecture", use_column_width='auto')
171
- else:
172
- st.warning("Model plot could not be generated. Ensure pydot and graphviz are installed.")
173
 
174
  with st.expander("πŸ“Š Model Performance Comparison and Key Improvements"):
175
  st.markdown("###### πŸ”‘ Key Notes on Model Improvement")
 
160
  st.write(f"R-squared (Deep Model R2): {r2_deep:.2f}")
161
 
162
  # Show the model summary
163
+ # st.markdown("**Deep Learning Model Summary**")
164
+ # plot_path = "deep_model_plot.png"
165
+ # plot_model(deep_model, to_file=plot_path, show_shapes=True, show_layer_names=True)
166
+
167
+ # # Display the plot in Streamlit
168
+ # if os.path.exists(plot_path):
169
+ # image = Image.open(plot_path)
170
+ # st.image(image, caption="Keras Sequential Model Architecture", use_column_width='auto')
171
+ # else:
172
+ # st.warning("Model plot could not be generated. Ensure pydot and graphviz are installed.")
173
 
174
  with st.expander("πŸ“Š Model Performance Comparison and Key Improvements"):
175
  st.markdown("###### πŸ”‘ Key Notes on Model Improvement")