def delete_model_post(): delete_folder(os.path.join(paths["models"], request.values["model"])) return redirect("/settings")
def delete_dataset_post(): delete_folder(os.path.join(paths["datasets"], request.values["dataset"])) return redirect("/settings")