breddaz's picture
Add gensim and Word2vec/nlpl_43 hf model
2699b34
raw
history blame contribute delete
326 Bytes
import streamlit as st
from gensim.models import KeyedVectors
from huggingface_hub import hf_hub_download
model = KeyedVectors.load_word2vec_format(hf_hub_download(repo_id="Word2vec/nlpl_43", filename="model.bin"), binary=True, unicode_errors="ignore")
word = st.text_input('Enter a word')
st.write(word, 'squared is', word)