Spaces:
Runtime error
Runtime error
Commit
·
bebd184
1
Parent(s):
7daebfc
use cache
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from datasets import load_dataset
|
|
6 |
# finetuned model
|
7 |
language_model_path = "juliaannjose/finetuned_model"
|
8 |
|
9 |
-
# load the dataset
|
10 |
# use the patent number, abstract and claim columns for UI
|
11 |
with st.spinner("Setting up the app..."):
|
12 |
dataset_dict = load_dataset(
|
@@ -29,7 +29,6 @@ _patent_id = st.selectbox(
|
|
29 |
|
30 |
|
31 |
# display abstract and claim
|
32 |
-
@st.cache_data
|
33 |
def get_abs_claim(_patent_id):
|
34 |
# get abstract and claim corresponding to this patent id
|
35 |
_abstract = dataset_dict["train"][["patent_number"] == _patent_id]["abstract"]
|
|
|
6 |
# finetuned model
|
7 |
language_model_path = "juliaannjose/finetuned_model"
|
8 |
|
9 |
+
# load the dataset to
|
10 |
# use the patent number, abstract and claim columns for UI
|
11 |
with st.spinner("Setting up the app..."):
|
12 |
dataset_dict = load_dataset(
|
|
|
29 |
|
30 |
|
31 |
# display abstract and claim
|
|
|
32 |
def get_abs_claim(_patent_id):
|
33 |
# get abstract and claim corresponding to this patent id
|
34 |
_abstract = dataset_dict["train"][["patent_number"] == _patent_id]["abstract"]
|