Commit
·
c9dab8a
1
Parent(s):
6c65e74
update
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
11 |
|
12 |
CACHE_TIME = 60 * 60 * 12 # 12 hours
|
13 |
-
MAX_RESULTS =
|
14 |
|
15 |
|
16 |
@cached(cache=TTLCache(maxsize=10, ttl=CACHE_TIME))
|
@@ -33,8 +33,8 @@ def get_arxiv_result():
|
|
33 |
|
34 |
|
35 |
def load_model():
|
36 |
-
return SetFitModel.from_pretrained("librarian-bots/
|
37 |
-
|
38 |
|
39 |
def format_row_for_model(row):
|
40 |
return f"TITLE: {row['title']} \n\nABSTRACT: {row['abstract']}"
|
|
|
10 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
11 |
|
12 |
CACHE_TIME = 60 * 60 * 12 # 12 hours
|
13 |
+
MAX_RESULTS = 1_000
|
14 |
|
15 |
|
16 |
@cached(cache=TTLCache(maxsize=10, ttl=CACHE_TIME))
|
|
|
33 |
|
34 |
|
35 |
def load_model():
|
36 |
+
return SetFitModel.from_pretrained("librarian-bots/is_new_dataset_t`eacher_model")
|
37 |
+
`
|
38 |
|
39 |
def format_row_for_model(row):
|
40 |
return f"TITLE: {row['title']} \n\nABSTRACT: {row['abstract']}"
|