Spaces:
Runtime error
Runtime error
Update app.py
Browse files56 unmodified lines57585960616263646566676856 unmodified linesall_unknown = Truefor 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":all_unknown = Falsebreakif all_unknown:return "Unknown", 0, history[-3:-1]else:return class_name, probability, history[-3:-1]56 unmodified lines57585960616263646566676856 unmodified linesall_unknown = Truefor model_name in model_names:class_name, probability, _ = classify_selected_model(image, model_name)if class_name != "Unknown":all_unknown = Falsebreakif all_unknown: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