Spaces:
Runtime error
Runtime error
nipunsadvilkar
commited on
Commit
•
a0fa70b
1
Parent(s):
46f56c6
Use h2 class
Browse files- apps/classifier.py +2 -2
- apps/mlm.py +1 -1
apps/classifier.py
CHANGED
@@ -74,5 +74,5 @@ def app():
|
|
74 |
with st.spinner("Generating prediction..."):
|
75 |
result = load_model(text_to_classify, model_name_or_path)
|
76 |
|
77 |
-
st.markdown("
|
78 |
-
st.markdown("
|
|
|
74 |
with st.spinner("Generating prediction..."):
|
75 |
result = load_model(text_to_classify, model_name_or_path)
|
76 |
|
77 |
+
st.markdown("## Predicted Label:** " + result[0]["label"])
|
78 |
+
st.markdown("## Score:** " + str(round(result[0]["score"], 2)))
|
apps/mlm.py
CHANGED
@@ -28,7 +28,7 @@ def app():
|
|
28 |
|
29 |
st.markdown(
|
30 |
"❓Can't figure out where to get a sample text other than the predefined ones?❓\n\n"
|
31 |
-
"Use any custom sentence with masked word or copy any headline from [link](https://maharashtratimes.com/entertainment/articlelist/19359255.cms), and mask a word.\n"
|
32 |
"> 📒 NOTE: Supports only single `<mask>` word"
|
33 |
)
|
34 |
|
|
|
28 |
|
29 |
st.markdown(
|
30 |
"❓Can't figure out where to get a sample text other than the predefined ones?❓\n\n"
|
31 |
+
"Use any custom sentence with masked word or copy any headline from this [link](https://maharashtratimes.com/entertainment/articlelist/19359255.cms), and mask a word.\n"
|
32 |
"> 📒 NOTE: Supports only single `<mask>` word"
|
33 |
)
|
34 |
|