From 1334847a22751ab1d83936f22d78fa572e9d6a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ian=20Gonz=C3=A1lez?= Date: Tue, 21 Jun 2022 23:26:51 -0600 Subject: [PATCH] Restore get_config function for Gallery component (#1614) Co-authored-by: Ian Gonzalez --- gradio/components.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gradio/components.py b/gradio/components.py index f25ff46633..94e27d141f 100644 --- a/gradio/components.py +++ b/gradio/components.py @@ -3268,6 +3268,12 @@ class Gallery(IOComponent): } return updated_config + def get_config(self): + return { + "value": self.value, + **IOComponent.get_config(self), + } + def postprocess(self, y): """ Parameters: