Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
import
|
| 3 |
-
from gensim.models import FastText
|
| 4 |
-
from gensim.test.utils import get_tmpfile
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
model_path = "model_fastext.bin"
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
# Load the FastText model
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import fasttext
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
model_path = "model_fastext.bin"
|
| 5 |
+
|
| 6 |
+
# Load the FastText model
|
| 7 |
+
model = fasttext.load_model(model_path)
|
| 8 |
|
| 9 |
|
| 10 |
# Load the FastText model
|