Spaces:
Runtime error
Runtime error
Commit
·
5fd502b
1
Parent(s):
6b257fd
Update app.py
Browse files
app.py
CHANGED
@@ -29,13 +29,13 @@ _patent_id = st.selectbox(
|
|
29 |
|
30 |
|
31 |
# display abstract and claim
|
32 |
-
def get_abs_claim(
|
33 |
# get abstract and claim corresponding to this patent id
|
34 |
-
st.write(
|
35 |
-
|
36 |
-
|
37 |
st.write(_abstract)
|
38 |
-
return
|
39 |
|
40 |
|
41 |
st.write(_patent_id)
|
|
|
29 |
|
30 |
|
31 |
# display abstract and claim
|
32 |
+
def get_abs_claim(_pid):
|
33 |
# get abstract and claim corresponding to this patent id
|
34 |
+
st.write(_pid)
|
35 |
+
_abs = dataset_dict["train"][["patent_number"] == _pid]["abstract"]
|
36 |
+
_cl = dataset_dict["train"][["patent_number"] == _pid]["claims"]
|
37 |
st.write(_abstract)
|
38 |
+
return _abs, _cl
|
39 |
|
40 |
|
41 |
st.write(_patent_id)
|