chandanrajCL commited on
Commit
da7d7c9
·
verified ·
1 Parent(s): acae7aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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)