Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,12 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|