Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ if st.button("Get prediction", key="manual"):
|
|
55 |
predict = get_predict(title, abstract)
|
56 |
|
57 |
tags = []
|
58 |
-
threshold = 0 if
|
59 |
sum_p = 0
|
60 |
for p, tag in predict:
|
61 |
sum_p += p
|
|
|
55 |
predict = get_predict(title, abstract)
|
56 |
|
57 |
tags = []
|
58 |
+
threshold = 0 if mode == "Best prediction" else 0.95
|
59 |
sum_p = 0
|
60 |
for p, tag in predict:
|
61 |
sum_p += p
|