Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -209,7 +209,7 @@ def predict(text_input, progress=gr.Progress()):
|
|
209 |
|
210 |
plot = datamapplot.create_interactive_plot(
|
211 |
stacked_df[['x','y']].values,
|
212 |
-
np.array(
|
213 |
hover_text=[str(ix) + ', ' + str(row['parsed_publication']) + str(row['title']) for ix, row in stacked_df.iterrows()],
|
214 |
font_family="Roboto Condensed",marker_color_array=stacked_df['color']
|
215 |
)
|
|
|
209 |
|
210 |
plot = datamapplot.create_interactive_plot(
|
211 |
stacked_df[['x','y']].values,
|
212 |
+
np.array(stacked_df['cluster_1_labels']),np.array(stacked_df['cluster_2_labels']),np.array(stacked_df['cluster_3_labels']),
|
213 |
hover_text=[str(ix) + ', ' + str(row['parsed_publication']) + str(row['title']) for ix, row in stacked_df.iterrows()],
|
214 |
font_family="Roboto Condensed",marker_color_array=stacked_df['color']
|
215 |
)
|