Spaces:
Runtime error
Runtime error
harry-stark
commited on
Commit
•
5e1fd7e
1
Parent(s):
6ec105b
Refactors:New model and dropped multilingual support
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ if __name__ == '__main__':
|
|
16 |
|
17 |
|
18 |
with st.form(key='my_form'):
|
19 |
-
text_input = st.text_area("Input Text",
|
20 |
-
labels = st.text_input('Possible topics (separated by `,`)',
|
21 |
labels = list(set([x.strip() for x in labels.strip().split(',') if len(x.strip()) > 0]))
|
22 |
radio = st.radio("Select Multiclass",('Only one topic can be corect at a time','Multiple topics can be correct at a time'),)
|
23 |
multi_class= True if radio=="Multiple topics can be correct at a time" else False
|
|
|
16 |
|
17 |
|
18 |
with st.form(key='my_form'):
|
19 |
+
text_input = st.text_area("Input Text",ex_text)
|
20 |
+
labels = st.text_input('Possible topics (separated by `,`)',ex_labels, max_chars=1000)
|
21 |
labels = list(set([x.strip() for x in labels.strip().split(',') if len(x.strip()) > 0]))
|
22 |
radio = st.radio("Select Multiclass",('Only one topic can be corect at a time','Multiple topics can be correct at a time'),)
|
23 |
multi_class= True if radio=="Multiple topics can be correct at a time" else False
|