Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,12 @@ import pickle
|
|
5 |
from pathlib import Path
|
6 |
import time
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
def make_clickable_both(val):
|
9 |
name, url = val.split('#')
|
10 |
print(name+"\n")
|
@@ -31,9 +37,6 @@ def find(query):
|
|
31 |
print("load quran\n")
|
32 |
print(time.time())
|
33 |
|
34 |
-
model = SentenceTransformer('intfloat/multilingual-e5-large-instruct')
|
35 |
-
print(time.time())
|
36 |
-
|
37 |
documents = quran_splitted['text'].tolist()
|
38 |
# document_embeddings = model.encode(documents, convert_to_tensor=True, normalize_embeddings=True)
|
39 |
# filename = 'encoded_quran_text_split_multilingual-e5-large-instruct.sav'
|
|
|
5 |
from pathlib import Path
|
6 |
import time
|
7 |
|
8 |
+
print("load model start\n")
|
9 |
+
print(time.time())
|
10 |
+
model = SentenceTransformer('intfloat/multilingual-e5-large-instruct')
|
11 |
+
print("load model end\n")
|
12 |
+
print(time.time())
|
13 |
+
|
14 |
def make_clickable_both(val):
|
15 |
name, url = val.split('#')
|
16 |
print(name+"\n")
|
|
|
37 |
print("load quran\n")
|
38 |
print(time.time())
|
39 |
|
|
|
|
|
|
|
40 |
documents = quran_splitted['text'].tolist()
|
41 |
# document_embeddings = model.encode(documents, convert_to_tensor=True, normalize_embeddings=True)
|
42 |
# filename = 'encoded_quran_text_split_multilingual-e5-large-instruct.sav'
|