tasmay commited on
Commit
03914c0
·
1 Parent(s): 98195dd

modified model

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ if file_name is not None:
23
  predictions = predict(file_name)
24
  col2.header("Prediction:")
25
  for p in predictions:
26
- st.write(p)
27
  #col2.subheader(f"{ p['label'] }: { round(p['probs'] * 100, 1)}%")
28
  else:
29
  st.write('Please upload a file!')
 
23
  predictions = predict(file_name)
24
  col2.header("Prediction:")
25
  for p in predictions:
26
+ st.write(p, ': ', round(predictions[p] * 100, 1))
27
  #col2.subheader(f"{ p['label'] }: { round(p['probs'] * 100, 1)}%")
28
  else:
29
  st.write('Please upload a file!')