Spaces:
Runtime error
Runtime error
Update app.py
Browse files56 unmodified lines575859606061626364656566676856 unmodified lines all_unknown = True for model_name in model_names: class_name, probability, _ = classify_selected_model(image, model_name) if class_name != "Can't detection this image please try another one": if class_name != "Unknown": all_unknown = False break
if all_unknown: return "Unknown", 0, history[-3:-1] return "Can't detection this image please try another one", 0, history[-3:-1] else: return class_name, probability, history[-3:-1]
app.py+2-2