Spaces:
Sleeping
Sleeping
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) |