Spaces:
Runtime error
Runtime error
Update app.py
Browse files43 unmodified lines4445464748495043 unmodified linesif min_probability < 70: # Adjust the threshold as neededresult_str = "Can't detect this image. Please try another one."history.append(result_str)return None, None, history[-1]best_model = max(all_predictions, key=all_predictions.get)class_name = class_folders[np.argmax(models[best_model].predict(img)[0])]43 unmodified lines4445464748495043 unmodified linesif min_probability < 70: # Adjust the threshold as neededresult_str = "Can't detect this image. Please try another one."history.append(result_str)return None, None, history[-3:-1]best_model = max(all_predictions, key=all_predictions.get)class_name = class_folders[np.argmax(models[best_model].predict(img)[0])]
app.py+1-1