iremrit commited on
Commit
db3a4d1
·
verified ·
1 Parent(s): 76aee8e

Update correlation_explorer_app.py

Browse files
Files changed (1) hide show
  1. correlation_explorer_app.py +2 -2
correlation_explorer_app.py CHANGED
@@ -216,7 +216,7 @@ def update_visuals(x_var, y_var, year_range, mode, scope, dark_mode):
216
  heatmap.update_layout(template="plotly_dark" if dark_mode else "plotly_white")
217
 
218
  return fig, heatmap, corr_sentence
219
-
220
  # 5. Run app
221
  if __name__ == '__main__':
222
- app.run(debug=True)
 
216
  heatmap.update_layout(template="plotly_dark" if dark_mode else "plotly_white")
217
 
218
  return fig, heatmap, corr_sentence
219
+ server = app.server # Required for gunicorn
220
  # 5. Run app
221
  if __name__ == '__main__':
222
+ app.run_server(debug=True, host='0.0.0.0', port=7860)