davidberenstein1957's picture
fix non-existent import
b6646ba
raw
history blame
619 Bytes
import inspect
from gradio import TabbedInterface
from synthetic_dataset_generator import ( # noqa
_distiset,
_inference_endpoints,
)
def launch(*args, **kwargs):
"""Launch the synthetic dataset generator.
Based on the `TabbedInterface` from Gradio.
Parameters: https://www.gradio.app/docs/gradio/tabbedinterface
"""
from synthetic_dataset_generator.app import demo
return demo.launch(*args, **kwargs)
launch.__doc__ = TabbedInterface.launch.__doc__
launch.__signature__ = inspect.signature(TabbedInterface.launch)
launch.__annotations__ = TabbedInterface.launch.__annotations__