Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lightning/app/components/serve/auto_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ def _get_endpoint_info_page(self) -> Optional["APIAccessFrontend"]: # noqa: F82
try:
from lightning_api_access import APIAccessFrontend
except ModuleNotFoundError:
logger.warn("APIAccessFrontend not found. Please install lightning-api-access to enable the UI")
logger.warn(
"Some dependencies to run the UI are missing. To resolve, run `pip install lightning-api-access`"
)
return

if is_running_in_cloud():
Expand Down
4 changes: 3 additions & 1 deletion src/lightning/app/components/serve/python_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ def configure_layout(self) -> Optional["Frontend"]:
try:
from lightning_api_access import APIAccessFrontend
except ModuleNotFoundError:
logger.warn("APIAccessFrontend not found. Please install lightning-api-access to enable the UI")
logger.warn(
"Some dependencies to run the UI are missing. To resolve, run `pip install lightning-api-access`"
)
return

class_name = self.__class__.__name__
Expand Down