felipekitamura commited on
Commit
810b96d
·
verified ·
1 Parent(s): a0acfaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,8 +48,8 @@ def inference(word1, word2, word3):
48
  df = pd.DataFrame({
49
  "x": reduced_data_pca[:, 0],
50
  "y": reduced_data_pca[:, 1],
51
- "color": ["b", "b", "b", "r", "g", "g", "g"][:len(data)],
52
- "label": ["W1", "W2", "W3", "W4", "W5", "W6", "W7"][:len(data)]
53
  })
54
  #'''
55
  return df
 
48
  df = pd.DataFrame({
49
  "x": reduced_data_pca[:, 0],
50
  "y": reduced_data_pca[:, 1],
51
+ "color": labels[:len(data)]
52
+ #"label": ["W1", "W2", "W3", "W4", "W5", "W6", "W7"][:len(data)]
53
  })
54
  #'''
55
  return df