File size: 619 Bytes
5532825 6fc91c7 5532825 8395748 5532825 6fc91c7 5532825 6fc91c7 5532825 6fc91c7 5532825 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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__
|