Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def predict(image):
|
|
| 43 |
# Return the class label and confidence
|
| 44 |
return class_to_label[predicted_class], f'{confidence * 100:.2f}%'
|
| 45 |
|
| 46 |
-
example_images = ["healthy.
|
| 47 |
|
| 48 |
# Create Gradio interface
|
| 49 |
interface = gr.Interface(fn=predict,
|
|
|
|
| 43 |
# Return the class label and confidence
|
| 44 |
return class_to_label[predicted_class], f'{confidence * 100:.2f}%'
|
| 45 |
|
| 46 |
+
example_images = ["healthy.jpg", "unhealthy.jpg"]
|
| 47 |
|
| 48 |
# Create Gradio interface
|
| 49 |
interface = gr.Interface(fn=predict,
|