Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,9 @@ def classify_image(img):
|
|
24 |
return {class_labels[i]: float(predictions[0][i]) for i in range(len(class_labels))}, confidence
|
25 |
|
26 |
# Example images (local paths or URLs)
|
27 |
-
example_images = [
|
28 |
-
'examples/fresh.jpg', # Replace with actual local file paths or URLs
|
29 |
-
]
|
30 |
|
31 |
# Gradio interface
|
32 |
demo = gr.Interface(
|
|
|
24 |
return {class_labels[i]: float(predictions[0][i]) for i in range(len(class_labels))}, confidence
|
25 |
|
26 |
# Example images (local paths or URLs)
|
27 |
+
#example_images = [
|
28 |
+
#'examples/fresh.jpg', # Replace with actual local file paths or URLs
|
29 |
+
#]
|
30 |
|
31 |
# Gradio interface
|
32 |
demo = gr.Interface(
|