harry-stark commited on
Commit
5e1fd7e
1 Parent(s): 6ec105b

Refactors:New model and dropped multilingual support

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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",data['text'])
20
- labels = st.text_input('Possible topics (separated by `,`)',data["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
 
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