Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,13 +33,13 @@ def main():
|
|
| 33 |
|
| 34 |
if st.button("Prediction"):
|
| 35 |
# plot pca cluster plot
|
| 36 |
-
|
| 37 |
|
| 38 |
# Convert the plot to a compatible format for Streamlit
|
| 39 |
-
compatible_plot = go.Figure(data=plot['data'], layout=plot['layout'])
|
| 40 |
|
| 41 |
# Display the plot in Streamlit
|
| 42 |
-
st.plotly_chart(compatible_plot)
|
| 43 |
|
| 44 |
if __name__ == '__main__':
|
| 45 |
main()
|
|
|
|
| 33 |
|
| 34 |
if st.button("Prediction"):
|
| 35 |
# plot pca cluster plot
|
| 36 |
+
plot_model(kmeans, plot = 'cluster', display_format = ‘streamlit’)
|
| 37 |
|
| 38 |
# Convert the plot to a compatible format for Streamlit
|
| 39 |
+
# compatible_plot = go.Figure(data=plot['data'], layout=plot['layout'])
|
| 40 |
|
| 41 |
# Display the plot in Streamlit
|
| 42 |
+
# st.plotly_chart(compatible_plot)
|
| 43 |
|
| 44 |
if __name__ == '__main__':
|
| 45 |
main()
|