Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Render Graph from apipost/v1/send_command generated JSON #113

Closed
vproHacks opened this issue Jul 31, 2024 · 1 comment
Closed
Assignees

Comments

@vproHacks
Copy link
Contributor

Disclaimer: This may not actually be an issue, currently when I run the following command:

let cmd = {
            "extensionId": "my_adapter",
            "cmdId": "convert",
            "modelPath": model_path,
            "deleteAfterConversion": false,
            "settings": {},
};

using the model_explorer API, the JSON graph that's returned can't be parsed by the builtin JSON adapter. I wonder if there's anything I'm doing wrong or how I would be able to a graph saved in JSON, modify the JSON a bit, and re-render it using the JSON Adapter.

@jinjingforever
Copy link
Collaborator

jinjingforever commented Jul 31, 2024

Hi @vproHacks

The response from send_command looks like this:

Screenshot 2024-07-31 at 11 50 45 AM

What you need to do is to take the first element of graphCollections out and save that into a json file:

{
  "label": "",
  "graphs": [
    {
      "id": "main",
      "nodes": []
    }
  ]
}

Please give it a try! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants