Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,9 @@ if submit_button:
|
|
15 |
|
16 |
labels = list(l.strip() for l in input_label.split(','))
|
17 |
pred = classifier(input_text, labels, multi_class=True)
|
|
|
|
|
18 |
|
19 |
-
st.success(
|
20 |
|
21 |
# st.markdown(pred)
|
|
|
15 |
|
16 |
labels = list(l.strip() for l in input_label.split(','))
|
17 |
pred = classifier(input_text, labels, multi_class=True)
|
18 |
+
|
19 |
+
out = f"Top predicted labels are {', '.join(p for p in pred['labels'][0:2])}"
|
20 |
|
21 |
+
st.success(out)
|
22 |
|
23 |
# st.markdown(pred)
|