felipekitamura commited on
Commit
9382862
·
verified ·
1 Parent(s): 1ef8e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from sklearn.decomposition import PCA
7
  from sklearn.manifold import TSNE
8
  model = gensim.downloader.load("word2vec-google-news-300") #glove-wiki-gigaword-50
9
 
10
- cache = "/home/user/app/d.jpg"
11
 
12
  # Function to reduce dimensions
13
  def reduce_dimensions(data, method='PCA'):
@@ -43,7 +43,7 @@ def plot_reduced_data(reduced_data, labels, title):
43
  plt.xlabel('Component 1')
44
  plt.ylabel('Component 2')
45
  plt.grid(True)
46
- plt.savefig(cache)
47
 
48
  description = """
49
  ### Word Embedding Demo App
 
7
  from sklearn.manifold import TSNE
8
  model = gensim.downloader.load("word2vec-google-news-300") #glove-wiki-gigaword-50
9
 
10
+ cache = "/home/user/app/d.tif"
11
 
12
  # Function to reduce dimensions
13
  def reduce_dimensions(data, method='PCA'):
 
43
  plt.xlabel('Component 1')
44
  plt.ylabel('Component 2')
45
  plt.grid(True)
46
+ plt.savefig(cache, dpi=300)
47
 
48
  description = """
49
  ### Word Embedding Demo App