HebaAllah commited on
Commit
c2a9305
·
verified ·
1 Parent(s): cd4b5c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -1,4 +1,12 @@
1
- import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
1
 
2
+ def plot_sample_images(image_data, labels, categories):
3
+ plt.figure(figsize=(12, 8))
4
+ for i in range(6):
5
+ plt.subplot(2, 3, i + 1)
6
+ plt.imshow(image_data[i].astype('uint8'))
7
+ plt.title(categories[labels[i]])
8
+ plt.axis('off')
9
+ plt.tight_layout()
10
+ plt.show()
11
+
12
+ plot_sample_images(image_data, labels, categories)