Spaces:
Runtime error
Runtime error
Benjamin S Liang
commited on
Commit
•
d543a3c
1
Parent(s):
284129c
Test abstracts list
Browse files- app.py +2 -0
- finetunehupd.ipynb +0 -8
app.py
CHANGED
@@ -59,6 +59,8 @@ st.title('Finetuned Harvard USPTO Patent Dataset (using DistilBert-Base-Uncased)
|
|
59 |
st.markdown('Link to the app - [sentiment-analysis-app](https://huggingface.co/spaces/saccharinedreams/sentiment-analysis-app)')
|
60 |
|
61 |
abstracts = load_abstracts()
|
|
|
|
|
62 |
dropdown_abstracts = st.selectbox('Select one of the following abstracts from the HUPD dataset:', abstracts, index=abstracts.index(abstracts[0]))
|
63 |
model, tokenizer = load_model('finetuned')
|
64 |
|
|
|
59 |
st.markdown('Link to the app - [sentiment-analysis-app](https://huggingface.co/spaces/saccharinedreams/sentiment-analysis-app)')
|
60 |
|
61 |
abstracts = load_abstracts()
|
62 |
+
print(len(abstracts))
|
63 |
+
print(abstracts[0])
|
64 |
dropdown_abstracts = st.selectbox('Select one of the following abstracts from the HUPD dataset:', abstracts, index=abstracts.index(abstracts[0]))
|
65 |
model, tokenizer = load_model('finetuned')
|
66 |
|
finetunehupd.ipynb
CHANGED
@@ -1260,14 +1260,6 @@
|
|
1260 |
"# model.eval()"
|
1261 |
]
|
1262 |
},
|
1263 |
-
{
|
1264 |
-
"cell_type": "code",
|
1265 |
-
"execution_count": null,
|
1266 |
-
"id": "567bcfcd-cb0d-4f3e-98a3-51f5c6ed5d1d",
|
1267 |
-
"metadata": {},
|
1268 |
-
"outputs": [],
|
1269 |
-
"source": []
|
1270 |
-
},
|
1271 |
{
|
1272 |
"cell_type": "code",
|
1273 |
"execution_count": 5,
|
|
|
1260 |
"# model.eval()"
|
1261 |
]
|
1262 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1263 |
{
|
1264 |
"cell_type": "code",
|
1265 |
"execution_count": 5,
|