class_docstr: App for visualizing predictions in Label Studio results format.
class_docstr_tok: ["App","for","visualizing","predictions","in","Label","Studio","results","format","."]
docstr: Converts predictions to Label Studio results.
docstr_tok: ["Converts","predictions","to","Label","Studio","results","."]
code: def show_predictions(self, predictions):
      """Converts predictions to Label Studio results."""
      results = []
      for prediction_batch in predictions:
          for pred in prediction_batch:
              results.append(self._construct_result(pred))
      return results
  
file_path: lightning-flash/src/flash/core/integrations/labelstudio/visualizer.py
imports: import json
  import random
  import string
  from pytorch_lightning.utilities.cloud_io import get_filesystem
  from flash.core.data.data_module import DataModule
  from flash.core.integrations.labelstudio.input import LabelStudioParameters
label_desc: Use image node_id 2 for calling the App obj's underlying member method code with example usage: obj.show_predictions(predictions) and returns: results