nurindahpratiwi commited on
Commit
45c0ecc
1 Parent(s): 3f0b4bd

first commit

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,4 +21,6 @@ if file_name is not None:
21
  col1.image(image, use_column_width=True) # Menampilkan image di kolom 1
22
  predictions = pipeline(image) # melakukan prediksi dari input image
23
 
24
- col2.header("Confidence Score") #Menam
 
 
 
21
  col1.image(image, use_column_width=True) # Menampilkan image di kolom 1
22
  predictions = pipeline(image) # melakukan prediksi dari input image
23
 
24
+ col2.header("Confidence Score") # Menampilkan judul di kolom kedua (sebelah kanan)
25
+ for p in predictions: # Menampilkan score confidence score
26
+ col2.subheader(f"{ p['label'] }: { round(p['score'] * 100, 1)}%")