Spaces:
Build error
Build error
ibn-sidah-team
commited on
Commit
•
3958617
1
Parent(s):
da29930
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,10 @@
|
|
1 |
-
pip install -r requirements.txt
|
2 |
-
pip install faiss-cpu
|
3 |
-
# In the requirements.txt but not installed correctly so we have to use pip command
|
4 |
-
#!pip install gensim==3.8.1
|
5 |
-
python -m spacy download en_core_web_sm
|
6 |
-
# Install gradio for user interface
|
7 |
-
pip install gradio
|
8 |
-
|
9 |
import sensegram
|
10 |
from wsd import WSD
|
11 |
from gensim.models import KeyedVectors
|
12 |
|
13 |
# Model files
|
14 |
-
sense_vectors_fpath = "
|
15 |
-
word_vectors_fpath = "
|
16 |
|
17 |
# Model parameters
|
18 |
max_context_words = 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import sensegram
|
2 |
from wsd import WSD
|
3 |
from gensim.models import KeyedVectors
|
4 |
|
5 |
# Model files
|
6 |
+
sense_vectors_fpath = "best_model.sense_vectors"
|
7 |
+
word_vectors_fpath = "best_model.word_vectors"
|
8 |
|
9 |
# Model parameters
|
10 |
max_context_words = 3
|