cmpatino commited on
Commit
2958f64
·
1 Parent(s): 229043f

Fix message construction

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -37,13 +37,13 @@ def get_clusters_plot(n_blobs, quantile, cluster_std):
37
  if len(centers) != n_clusters_:
38
  message = (
39
  f"The number of estimated clusters {n_clusters_}"
40
- " differs from the true number of clusters. ({n_blobs}).",
41
- "\n Try changing the bandwidth parameter.",
42
  )
43
  else:
44
  message = (
45
  f"The number of estimated clusters {n_clusters_}"
46
- "matches the true number of clusters. ({n_blobs})!",
47
  )
48
  return fig, message
49
 
 
37
  if len(centers) != n_clusters_:
38
  message = (
39
  f"The number of estimated clusters {n_clusters_}"
40
+ + f" differs from the true number of clusters. ({n_blobs})."
41
+ + " Try changing the bandwidth parameter."
42
  )
43
  else:
44
  message = (
45
  f"The number of estimated clusters {n_clusters_}"
46
+ + f" matches the true number of clusters. ({n_blobs})!"
47
  )
48
  return fig, message
49