()
| 97 | } |
| 98 | |
| 99 | fn build_modelserving() -> Vec<Node<'static>> { |
| 100 | let model_inp = Node { |
| 101 | question: "Enter model input tensor name.", |
| 102 | default: "data", |
| 103 | callback: substitute_model_inp, |
| 104 | }; |
| 105 | let model_path = Node { |
| 106 | question: "Enter model fullpath.", |
| 107 | default: "model.mge", |
| 108 | callback: substitute_model_path, |
| 109 | }; |
| 110 | vec![model_inp, model_path] |
| 111 | } |
| 112 | |
| 113 | fn write_branch_name(s: &str) -> Result<Action, &'static str> { |
| 114 | CONTEXT.lock().unwrap().custom_branch = s.to_string(); |