Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ st.header("Wikipedia Search Engine app")
|
|
10 |
st_model_load = st.text('Loading wikipedia embedding...')
|
11 |
|
12 |
@st.cache_resource
|
13 |
-
def
|
14 |
print("Loading embedding...")
|
15 |
hf_hub_download(repo_id="abokbot/wikipedia-embedding", filename="simple_wikipedia_embedding.pt")
|
16 |
wikipedia_embedding = torch.load("wikipedia-embedding/simple_wikipedia_embedding.pt")
|
|
|
10 |
st_model_load = st.text('Loading wikipedia embedding...')
|
11 |
|
12 |
@st.cache_resource
|
13 |
+
def load_embedding():
|
14 |
print("Loading embedding...")
|
15 |
hf_hub_download(repo_id="abokbot/wikipedia-embedding", filename="simple_wikipedia_embedding.pt")
|
16 |
wikipedia_embedding = torch.load("wikipedia-embedding/simple_wikipedia_embedding.pt")
|