Skip to content

Commit

Permalink
chore(client): optimize model build when no model serving api
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui committed Jan 3, 2023
1 parent 95a713f commit 408b1f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/starwhale/api/_impl/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def add_api_instance(self, api_: Api) -> None:
self.apis[api_.uri] = api_

def get_spec(self) -> t.Any:
# fast path
if not self.apis:
return {}
server = self._gen_gradio_server()
return server.get_config_file()

Expand Down

0 comments on commit 408b1f3

Please sign in to comment.