Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model = AutoModelForImageClassification.from_pretrained("saved_model_files")
|
|
15 |
|
16 |
labels = ['angular_leaf_spot', 'bean_rust', 'healthy']
|
17 |
|
18 |
-
@spaces.GPU(duration=
|
19 |
def classify(image: Image.Image) -> Dict[str, float]:
|
20 |
"""
|
21 |
Classify an image of a bean plant leaf into one of several health categories.
|
|
|
15 |
|
16 |
labels = ['angular_leaf_spot', 'bean_rust', 'healthy']
|
17 |
|
18 |
+
@spaces.GPU(duration=500)
|
19 |
def classify(image: Image.Image) -> Dict[str, float]:
|
20 |
"""
|
21 |
Classify an image of a bean plant leaf into one of several health categories.
|