m7n commited on
Commit
4f40d11
·
verified ·
1 Parent(s): 88d941f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(basedata_df['cluster_1_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
  )
 
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
  )