Spaces:
Build error
Build error
feat: Improve message for loading model part
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def generate_plot(
|
|
72 |
# encoded_labels = encode_labels(labels)
|
73 |
cluster = hdbscan.HDBSCAN(
|
74 |
min_cluster_size=3,
|
75 |
-
metric='euclidean',
|
76 |
cluster_selection_method='eom'
|
77 |
).fit(embeddings)
|
78 |
encoded_labels = cluster.labels_
|
@@ -104,7 +104,7 @@ with col1:
|
|
104 |
with col2:
|
105 |
go_btn = st.button('Visualize')
|
106 |
|
107 |
-
with st.spinner(text="
|
108 |
model = load_model(model_to_use[expected_lang])
|
109 |
|
110 |
if go_btn and tw_user != '':
|
|
|
72 |
# encoded_labels = encode_labels(labels)
|
73 |
cluster = hdbscan.HDBSCAN(
|
74 |
min_cluster_size=3,
|
75 |
+
metric='euclidean',
|
76 |
cluster_selection_method='eom'
|
77 |
).fit(embeddings)
|
78 |
encoded_labels = cluster.labels_
|
|
|
104 |
with col2:
|
105 |
go_btn = st.button('Visualize')
|
106 |
|
107 |
+
with st.spinner(text="Grabbing lenses..."):
|
108 |
model = load_model(model_to_use[expected_lang])
|
109 |
|
110 |
if go_btn and tw_user != '':
|