Spaces:
Sleeping
Sleeping
Commit ·
cb3656d
1
Parent(s): 97598d2
Minor change
Browse files
app.py
CHANGED
|
@@ -357,6 +357,7 @@ def classify_pipeline(image):
|
|
| 357 |
global top_label
|
| 358 |
|
| 359 |
predictions = classify_image(image)
|
|
|
|
| 360 |
top_label = max(predictions, key=predictions.get) # top-1
|
| 361 |
return predictions
|
| 362 |
|
|
|
|
| 357 |
global top_label
|
| 358 |
|
| 359 |
predictions = classify_image(image)
|
| 360 |
+
top_label = None
|
| 361 |
top_label = max(predictions, key=predictions.get) # top-1
|
| 362 |
return predictions
|
| 363 |
|