ashrestha commited on
Commit
e6c3137
1 Parent(s): 06ba6f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ if submit_button:
19
  pred = classifier(input_text, labels, multi_class=input_multi)
20
 
21
  if input_multi:
22
- st.vega_lite_chart(json.dumps(pred),
23
  {'mark': 'bar', 'encoding': {'y': 'labels', 'x': 'scores'}}
24
  )
25
  else:
 
19
  pred = classifier(input_text, labels, multi_class=input_multi)
20
 
21
  if input_multi:
22
+ st.vega_lite_chart(pred,
23
  {'mark': 'bar', 'encoding': {'y': 'labels', 'x': 'scores'}}
24
  )
25
  else: