INNER CODE UNIT · Python
run
aniketmaurya/chitra · chitra/serve/app.py:83
def run(self, share: bool = False, gr_interface_conf: Optional[dict] = None):
if not gr_interface_conf:
gr_interface_conf = {}
gr.Interface(
fn=self.api_type_func[self.api_type],
inputs=self.input_types,
outputs=self.output_types,
title=self.title,
description=self.desc,
**gr_interface_conf,
).launch(share=share)