dperales commited on
Commit
9498506
·
1 Parent(s): 6996de4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -32,8 +32,10 @@ def main():
32
 
33
  if st.button("Prediction"):
34
  # plot pca cluster plot
35
- plot_model(kmeans, plot = 'cluster')
36
-
 
 
37
 
38
  if __name__ == '__main__':
39
  main()
 
32
 
33
  if st.button("Prediction"):
34
  # plot pca cluster plot
35
+ plot = plot_model(kmeans, plot = 'cluster', save = True)
36
+ fig = go.Figure()
37
+ fig = go.FigureWidget(plot)
38
+ st.plotly_chart(fig)
39
 
40
  if __name__ == '__main__':
41
  main()