Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,11 @@ import pandas as pd
|
|
5 |
|
6 |
def find(query):
|
7 |
# transform query from user
|
8 |
-
model = SentenceTransformer('use-cmlm-multilingual')
|
9 |
encoded_query_text = model.encode(query)
|
10 |
|
11 |
# get encoded quran text
|
12 |
-
file = open('
|
13 |
encoded_quran_text = pickle.load(file)
|
14 |
file.close()
|
15 |
|
|
|
5 |
|
6 |
def find(query):
|
7 |
# transform query from user
|
8 |
+
model = SentenceTransformer('Bofandra/fine-tuning-use-cmlm-multilingual-quran-translation')
|
9 |
encoded_query_text = model.encode(query)
|
10 |
|
11 |
# get encoded quran text
|
12 |
+
file = open('encoded_quran_cmlm_finetuned.sav','rb')
|
13 |
encoded_quran_text = pickle.load(file)
|
14 |
file.close()
|
15 |
|