pj2111 commited on
Commit
967a443
·
1 Parent(s): c99b4a3

added rounding decimal to f string in progress bar

Browse files
Files changed (1) hide show
  1. pages/1_Classification.py +1 -1
pages/1_Classification.py CHANGED
@@ -29,7 +29,7 @@ output = pipe(text,l1)
29
  st_output = dict(zip(output['labels'],output['scores']))
30
  for i,k in st_output.items():
31
  # st.write(f"{i}========{k}")
32
- st.progress(k, text = f"{i:_<40} {k}")
33
  ## --> Home Work -- 1. Understand concept of session_state ==== 2. Apply in zeroshot ==== 3. observe feseablity for bison
34
  ## --> Home Work -- Use logging
35
  ## --> add editable df -
 
29
  st_output = dict(zip(output['labels'],output['scores']))
30
  for i,k in st_output.items():
31
  # st.write(f"{i}========{k}")
32
+ st.progress(k, text = f"{i:_<90} {k:.2f}")
33
  ## --> Home Work -- 1. Understand concept of session_state ==== 2. Apply in zeroshot ==== 3. observe feseablity for bison
34
  ## --> Home Work -- Use logging
35
  ## --> add editable df -