Spaces:
Sleeping
Sleeping
updated
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def upload_files():
|
|
| 103 |
|
| 104 |
|
| 105 |
def make_predictions(image_paths):
|
| 106 |
-
temp = None
|
| 107 |
try:
|
| 108 |
# # For Windows OS
|
| 109 |
# temp = pathlib.PosixPath # Save the original state
|
|
@@ -125,6 +125,8 @@ def make_predictions(image_paths):
|
|
| 125 |
predicted_class_str = str(prediction_class)
|
| 126 |
|
| 127 |
predictions.append(predicted_class_str)
|
|
|
|
|
|
|
| 128 |
|
| 129 |
return predictions
|
| 130 |
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
def make_predictions(image_paths):
|
| 106 |
+
# temp = None
|
| 107 |
try:
|
| 108 |
# # For Windows OS
|
| 109 |
# temp = pathlib.PosixPath # Save the original state
|
|
|
|
| 125 |
predicted_class_str = str(prediction_class)
|
| 126 |
|
| 127 |
predictions.append(predicted_class_str)
|
| 128 |
+
|
| 129 |
+
print(f"Prediction: {predictions}")
|
| 130 |
|
| 131 |
return predictions
|
| 132 |
|