diff --git a/gradio/components.py b/gradio/components.py index 18faaaf86c..63177e830b 100644 --- a/gradio/components.py +++ b/gradio/components.py @@ -15,7 +15,7 @@ import pandas as pd import PIL from ffmpy import FFmpeg -from gradio import Interface, processing_utils, test_data +from gradio import processing_utils, test_data from gradio.blocks import Block @@ -2387,7 +2387,7 @@ class Button(Component): # TODO: (faruk) does this take component or interface as a input? # see this line in Carousel # self.components = [get_component_instance(component) for component in components] -def get_component_instance(iface: Interface): +def get_component_instance(iface: "Interface"): # TODO: function may not work properly, and it needs updates regarding its design. See: # https://github.com/gradio-app/gradio/issues/731 if isinstance(iface, str): diff --git a/gradio/interface.py b/gradio/interface.py index 09756afc84..dfe03445c9 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -20,13 +20,9 @@ from mdit_py_plugins.footnote import footnote_plugin from gradio import interpretation, utils from gradio.external import load_from_pipeline, load_interface # type: ignore from gradio.flagging import CSVLogger, FlaggingCallback # type: ignore -from gradio.inputs import InputComponent from gradio.inputs import State as i_State # type: ignore -from gradio.inputs import get_input_instance from gradio.launchable import Launchable -from gradio.outputs import OutputComponent from gradio.outputs import State as o_State # type: ignore -from gradio.outputs import get_output_instance from gradio.process_examples import load_from_cache, process_example from gradio.routes import predict