Spaces:
Sleeping
Sleeping
Commit ·
1290bc6
1
Parent(s): e107c7c
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,5 +23,5 @@ if __name__ == '__main__':
|
|
| 23 |
model = KeyedVectors.load_word2vec_format('tencent-ailab-embedding-zh-d100-v0.2.0-s.txt', binary=False)
|
| 24 |
|
| 25 |
title = 'Calculate word similarity based on Tencent AI Lab Embedding'
|
| 26 |
-
iface = gr.Interface(fn=top_similarity_route, inputs="
|
| 27 |
iface.launch(share=True)
|
|
|
|
| 23 |
model = KeyedVectors.load_word2vec_format('tencent-ailab-embedding-zh-d100-v0.2.0-s.txt', binary=False)
|
| 24 |
|
| 25 |
title = 'Calculate word similarity based on Tencent AI Lab Embedding'
|
| 26 |
+
iface = gr.Interface(fn=top_similarity_route, inputs="text", outputs="text", title=title)
|
| 27 |
iface.launch(share=True)
|