Commit ·
52e7bd3
1
Parent(s): caddf15
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,19 +65,19 @@ description1 = "Test the model's prediction. Currently the model only supports t
|
|
| 65 |
|
| 66 |
|
| 67 |
# Define the full path to the images folder
|
| 68 |
-
|
| 69 |
|
| 70 |
# Define the examples list with full paths
|
| 71 |
-
examples = [("plane.jpg", 0.5, -1
|
| 72 |
-
("car.jpg", 0.5, -1
|
| 73 |
-
("bird.
|
| 74 |
-
("cat.
|
| 75 |
-
("deer.
|
| 76 |
-
("dog.
|
| 77 |
-
("frog.
|
| 78 |
-
("horse.
|
| 79 |
-
("ship.
|
| 80 |
-
("truck.
|
| 81 |
|
| 82 |
|
| 83 |
# Create a separate interface for the "Input an image" tab
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
# Define the full path to the images folder
|
| 68 |
+
images_folder = "examples"
|
| 69 |
|
| 70 |
# Define the examples list with full paths
|
| 71 |
+
examples = [[os.path.join(images_folder, "plane.jpg"), 0.5, -1],
|
| 72 |
+
[os.path.join(images_folder, "car.jpg"), 0.5, -1],
|
| 73 |
+
[os.path.join(images_folder, "bird.jpeg"), 0.5, -1],
|
| 74 |
+
[os.path.join(images_folder, "cat.jpeg"), 0.5, -1],
|
| 75 |
+
[os.path.join(images_folder, "deer.jpeg"), 0.5, -1],
|
| 76 |
+
[os.path.join(images_folder, "dog.jpeg"), 0.5, -1],
|
| 77 |
+
[os.path.join(images_folder, "frog.jpeg"), 0.5, -1],
|
| 78 |
+
[os.path.join(images_folder, "horse.jpeg"), 0.5, -1],
|
| 79 |
+
[os.path.join(images_folder, "ship.jpeg"), 0.5, -1],
|
| 80 |
+
[os.path.join(images_folder, "truck.jpeg"), 0.5, -1]]
|
| 81 |
|
| 82 |
|
| 83 |
# Create a separate interface for the "Input an image" tab
|