Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|