🪄
Replicate - AI & ML Models Plugin
  • 👋Introduction
  • Registering for a Replicate Account
  • Installing the Plugin
  • Adding API Keys
  • Creating Predictions
    • Stable Diffusion
    • GFPGAN
    • SDXL
  • Retrieving Predictions
    • Database Setup
    • Get Prediction Workflow Actions
    • Webhooks
Powered by GitBook
On this page
  1. Retrieving Predictions

Get Prediction Workflow Actions

PreviousDatabase SetupNextWebhooks

Last updated 1 year ago

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.

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

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

  • Set the type of data on the page to "prediction"

  • 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.

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