Spaces:
Runtime error
Runtime error
Commit
·
ecab12d
1
Parent(s):
ac107e6
change thr
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ print(text)
|
|
54 |
if text != "":
|
55 |
idxs = arxiv_model.get_idx_class(text, thr=0.95)
|
56 |
print(len(idxs))
|
57 |
-
if len(idxs) >
|
58 |
st.markdown("#### Sorry, model can't classify the article with high confidence")
|
59 |
else:
|
60 |
idxs = idxs[:10]
|
|
|
54 |
if text != "":
|
55 |
idxs = arxiv_model.get_idx_class(text, thr=0.95)
|
56 |
print(len(idxs))
|
57 |
+
if len(idxs) > 80:
|
58 |
st.markdown("#### Sorry, model can't classify the article with high confidence")
|
59 |
else:
|
60 |
idxs = idxs[:10]
|