Spaces:
Runtime error
Runtime error
ArtMirror2000
commited on
Commit
•
6844908
1
Parent(s):
d760892
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,13 @@ ft = fasttext.load_model('cc.arz.300.bin')
|
|
8 |
|
9 |
def getVectors(fname):
|
10 |
data = {}
|
11 |
-
data[tokens[0]] = ft.get_nearest_neighbors(fname)
|
12 |
return data
|
13 |
|
14 |
interface = gr.Interface(fn = getVectors,
|
15 |
inputs = "text",
|
16 |
outputs = ['text'],
|
17 |
-
title = '
|
18 |
-
description = '
|
19 |
|
20 |
interface.launch(inline = False)
|
|
|
8 |
|
9 |
def getVectors(fname):
|
10 |
data = {}
|
11 |
+
data[tokens[0]] = ft.get_nearest_neighbors(fname, k=100)
|
12 |
return data
|
13 |
|
14 |
interface = gr.Interface(fn = getVectors,
|
15 |
inputs = "text",
|
16 |
outputs = ['text'],
|
17 |
+
title = 'Get Nearest Neighbors',
|
18 |
+
description = 'Get resultss for search')
|
19 |
|
20 |
interface.launch(inline = False)
|