Spaces:
Sleeping
Sleeping
felipekitamura
commited on
Update app.py
Browse files
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.
|
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
|