# Model Console

When you view any model in AI Hub, the Model Console will allow you to run inference, view details about the model, download the model, and more.

<figure><img src="https://97157014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNUrjcsNMTjUhiNPIF4u%2Fuploads%2Fgit-blob-e2b59c3a8e252e49fed5e08a250e51c6844d796b%2Fai-hub--model-console-overview.png?alt=media" alt=""><figcaption><p>In the Model Console, you can upload an input file, run inference on it, view the source code, examine the model JSON, check labels, read the Model Readme, and more.</p></figcaption></figure>

## Run Inference

Most models can be run from the browser.

{% stepper %}
{% step %}
**Select an Input Image**

Use one of our sample images, or click the **Input File** button on the left side to upload your image. After you select an image, it will appear on the left side of the screen.
{% endstep %}

{% step %}
**Running Inference**

After uploading your image, click **Run Inference** on the right side to process the input.
{% endstep %}

{% step %}
**Results Display**

On the right side, the results of the inference will be overlayed onto the original image. You may also click **Json Result** to see the inference results in JSON format.

The results you get will vary depending on model and model type.
{% endstep %}
{% endstepper %}

## Code

<figure><img src="https://97157014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNUrjcsNMTjUhiNPIF4u%2Fuploads%2Fgit-blob-263e026c2d212be29074a84d320a261b36da5ff4%2Fai-hub--model-console-code-tab.png?alt=media" alt=""><figcaption><p>Code tab in the Model Console.</p></figcaption></figure>

Click **Code** to view sample code for running the model with DeGirum PySDK using the AI Hub and Python.

To use this code, you'll need to [create a Workspace token](https://docs.degirum.com/ai-hub/workspaces/workspace-tokens) and [install PySDK](https://docs.degirum.com/pysdk/installation). Then you'll be able to save the code to a .py file, edit it to use your cloud token and a file, and run the code.

## Model JSON

<figure><img src="https://97157014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNUrjcsNMTjUhiNPIF4u%2Fuploads%2Fgit-blob-c735160c1bd6a8d0f100f2b0bc3e489f7ad89c84%2Fai-hub--model-console-json-tab.png?alt=media" alt=""><figcaption><p>Model JSON tab in the Model Console.</p></figcaption></figure>

Click **Model JSON** to see the model JSON file using our model JSON editor and validator.

With the model JSON editor and validator, you can:

* Edit the JSON file.
* Validate the JSON.
* Download or copy the JSON file.

## Labels

<figure><img src="https://97157014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiNUrjcsNMTjUhiNPIF4u%2Fuploads%2Fgit-blob-8eab6b5d616c4f804c130204829e90d3cdc94817%2Fai-hub--model-console-labels-tab.png?alt=media" alt=""><figcaption><p>Labels tab in the Model Console.</p></figcaption></figure>

Click **Labels** to see the contents of the labels file used by the model.

## Copy, download, and delete the model

The Model Console features action buttons to:

* Copy the model URL.
* Download the model as a .zip file.
* Copy the model to a model zoo in any Workspace you have joined.
* Delete the model from this model zoo.
