Spaces:
Runtime error
Runtime error
Update app.py
Browse files45 unmodified lines464748494950515152535445 unmodified lines result_str = "Can't detect this image. Please try another one." return None, None, result_str
best_model = max(all_predictions, key=all_predictions.get) # best_model = max(all_predictions, key=all_predictions.get) class_name = class_folders[np.argmax(models[best_model].predict(img)[0])] probability = all_predictions[best_model] # probability = max(probability)
# result_str = f"{best_model}: {class_name} {probability}%" # result_str.append(result_str)app.py+2-2