pub async fn init_heart_disease_model(app: &App) -> Result<Id> {
	let mut txn = app.begin_transaction().await?;
	let repo_id = app.create_root_repo(&mut txn, "Heart Disease").await?;
	let model_path = workspace_root().join("heart_disease.tangram");
	let model_id = app.add_model_to_repo(&mut txn, repo_id, model_path).await?;
	app.commit_transaction(txn).await?;
	Ok(model_id)
}
/// Add the Heart Disease model to a fresh repo, returning the model id
Add the Heart Disease model to a fresh repo, returning the model id
Add the Heart Disease model to a fresh repo returning the model id
pub async fn init_heart_disease_model(app: &App) -> Result<Id> {
	let mut txn = app.begin_transaction().await?;
	let repo_id = app.create_root_repo(&mut txn, "Heart Disease").await?;
	let model_path = workspace_root().join("heart_disease.tangram");
	let model_id = app.add_model_to_repo(&mut txn, repo_id, model_path).await?;
	app.commit_transaction(txn).await?;
	Ok(model_id)
}
pub async fn init_heart_disease_model ( app : & App ) -> Result < Id > { let mut txn = app . begin_transaction ( ) . await ? ; let repo_id = app . create_root_repo ( & mut txn , " " ) . await ? ; let model_path = workspace_root ( ) . join ( " " ) ; let model_id = app . add_model_to_repo ( & mut txn , repo_id , model_path ) . await ? ; app . commit_transaction ( txn ) . await ? ; Ok ( model_id ) }
Add the Heart Disease model to a fresh repo, returning the model id
Add the Heart Disease model to a fresh repo returning the model id
app
&App