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