# Get Prediction Workflow Actions

Each of the models that come with the plugin have a "Get Prediction" workflow action:

* Get Prediction - Stable Diffusion
* Get Prediction - GFPGAN
* Get Prediction - SDXL

The below video tutorial shows how to set up your Bubble database and use the "Get Prediction - GFPGAN" action from 07:00.&#x20;

{% embed url="<https://www.youtube.com/watch?v=-VlztwBGzns>" %}

You can run the "Get Prediction" workflow action either on page load or as a backend workflow.&#x20;

If you run it on page load, you'll need to:

* Set the type of data on the page to "prediction"&#x20;
* Send the relevant prediction to the page you're loading
* EG, you can see in the below that we're creating a prediction in a workflow action and then sending that prediction to the "prediction-result" page

**IMPORTANT:** You will need to add a pause before navigating to the "prediction" result page to give Replicate time to create the prediction. It may take a bit of trial and error to figure out exactly how long the pause should be.&#x20;

<figure><img src="https://1187100604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ueA3DZDjlYOZVlFZToc%2Fuploads%2FlthMYOsdosUHRHmYt2Gn%2F2023-09-07%2010.20.52.gif?alt=media&#x26;token=1b2588a1-377c-4026-953e-1f997e48e75e" alt=""><figcaption></figcaption></figure>

You can then add a "Get Prediction" workflow action on page load to the "predictions-result" page and save down the relevant output:

<div align="left"><figure><img src="https://1187100604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ueA3DZDjlYOZVlFZToc%2Fuploads%2FwGqdsbp1EaTqWKFZl6dY%2FScreenshot%202023-09-07%20at%2010.27.17.png?alt=media&#x26;token=a7cba604-8589-4c5f-b1ee-64f716ead807" alt="" width="563"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1187100604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3ueA3DZDjlYOZVlFZToc%2Fuploads%2FApjkxp4texJWMXKfTlxy%2FScreenshot%202023-09-07%20at%2010.28.13.png?alt=media&#x26;token=030fecfa-976e-48bf-8f1a-df642e377211" alt="" width="563"><figcaption></figcaption></figure></div>
