Commit ·
41e8a7f
1
Parent(s): 3dc20b3
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ demo_1 = gr.Interface(
|
|
| 92 |
def show_incorrect(num_examples=10):
|
| 93 |
result = list()
|
| 94 |
for i in range(num_examples):
|
| 95 |
-
j = np.random.randint(1,
|
| 96 |
image = np.asarray(Image.open(f'Misclassified_images/{j}.jpg'))
|
| 97 |
actual = classes[wrong_img.loc[j-1].at["actual"]]
|
| 98 |
predicted = classes[wrong_img.loc[j-1].at["predicted"]]
|
|
|
|
| 92 |
def show_incorrect(num_examples=10):
|
| 93 |
result = list()
|
| 94 |
for i in range(num_examples):
|
| 95 |
+
j = np.random.randint(1,30)
|
| 96 |
image = np.asarray(Image.open(f'Misclassified_images/{j}.jpg'))
|
| 97 |
actual = classes[wrong_img.loc[j-1].at["actual"]]
|
| 98 |
predicted = classes[wrong_img.loc[j-1].at["predicted"]]
|