(name)
| 245 | |
| 246 | |
| 247 | def info(name): |
| 248 | inference_output_url, model_version, model_metadata, model_config = FedMLModelCards.get_instance().query_model(name) |
| 249 | if inference_output_url != "": |
| 250 | click.echo("Query model {} successfully.".format(name)) |
| 251 | click.echo("infer url: {}.".format(inference_output_url)) |
| 252 | click.echo("model version: {}.".format(model_version)) |
| 253 | click.echo("model metadata: {}.".format(model_metadata)) |
| 254 | click.echo("model config: {}.".format(model_config)) |
| 255 | else: |
| 256 | if name is None: |
| 257 | print("please specifiy the model name") |
| 258 | else: |
| 259 | click.echo("Failed to query model {}.".format(name)) |
| 260 | |
| 261 | |
| 262 | def run(name, data): |
nothing calls this directly
no test coverage detected