felipekitamura commited on
Commit
a0828e2
·
verified ·
1 Parent(s): 2dafbbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def inference(word1, word2, word3):
38
  word_list = [word1, word2, word3]
39
  word_list.extend([x for x,y in output[:4]])
40
  words = {key: model[key] for key in word_list}
41
- data = np.concatenate([x[np.newaxis, :] for x in words.values()], axis=0
42
  print(data.shape)
43
  labels = words.keys()
44
  reduced_data_pca = reduce_dimensions(data, method='PCA')
 
38
  word_list = [word1, word2, word3]
39
  word_list.extend([x for x,y in output[:4]])
40
  words = {key: model[key] for key in word_list}
41
+ data = np.concatenate([x[np.newaxis, :] for x in words.values()], axis=0)
42
  print(data.shape)
43
  labels = words.keys()
44
  reduced_data_pca = reduce_dimensions(data, method='PCA')