Bofandra commited on
Commit
db24faf
1 Parent(s): 9602fb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,6 +4,8 @@ import pandas as pd
4
  import pickle
5
  from pathlib import Path
6
 
 
 
7
  def make_clickable_both(val):
8
  name, url = val.split('#')
9
  print(name+"\n")
@@ -26,8 +28,6 @@ def find(query):
26
  file = open('quran-splitted.sav','rb')
27
  quran_splitted = pickle.load(file)
28
 
29
- model = SentenceTransformer('intfloat/multilingual-e5-large-instruct')
30
-
31
  documents = quran_splitted['text'].tolist()
32
  # document_embeddings = model.encode(documents, convert_to_tensor=True, normalize_embeddings=True)
33
  # filename = 'encoded_quran_text_split_multilingual-e5-large-instruct.sav'
 
4
  import pickle
5
  from pathlib import Path
6
 
7
+ model = SentenceTransformer('intfloat/multilingual-e5-large-instruct')
8
+
9
  def make_clickable_both(val):
10
  name, url = val.split('#')
11
  print(name+"\n")
 
28
  file = open('quran-splitted.sav','rb')
29
  quran_splitted = pickle.load(file)
30
 
 
 
31
  documents = quran_splitted['text'].tolist()
32
  # document_embeddings = model.encode(documents, convert_to_tensor=True, normalize_embeddings=True)
33
  # filename = 'encoded_quran_text_split_multilingual-e5-large-instruct.sav'