API access — StableDiffusion Pipe .images returning array of temp paths
I am using “stabilityai/stable-diffusion-2-inpainting” to create a pipe, StableDiffusionInpaintPipelineIn my function, when I provide a prompt and image and other values to the pipe, includingnum_images_per_prompt=1, I read .images and return a single image,pipe(...).images[0]When I do this, and call my function via API, I get a base64 encoded image raw data returned.Now, I change the function so that the pipe hasnum_images_per_prompt=4and I have the function return the entire.imagesarray from the pipe instead of justimages[0], but this time what gets returned to my API call is an array of dictionaries to temp paths, like so:{
    name: '/tmp/tmpqly2vjav/tmpm871xpz6.png',
    data: null,
    is_file: true
  },
  {
    name: '/tmp/tmpqly2vjav/tmpzcfmjfp1.png',
    data: null,
    is_file: true
  },
  {
    name: '/tmp/tmpqly2vjav/tmpxnisb_oi.png',
    data: null,
    is_file: true
  },
  {
    name: '/tmp/tmpqly2vjav/tmp76mdtjlq.png',
    data: null,
    is_file: true
  }I don’t know how to get the files from this array of dictionaries, I was hoping an array of raw base64 data would be returned, since when I usednum_images_per_prompt=1and returnedpipe(...).images[0]it did this.Any ideas?