File tree Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ lightning-cloud == 0.5.57 # Must be pinned to ensure compatibility
2
2
packaging
3
3
typing-extensions >=4.4.0, <4.8.0
4
4
deepdiff >=5.7.0, <6.6.0
5
- starsessions >=1.2.1, <2.0 # strict
6
5
fsspec[http] >=2022.5.0, <2023.11.0
7
6
croniter >=1.3.0, <1.5.0 # strict; TODO: for now until we find something more robust.
8
7
traitlets >=5.3.0, <5.10.0
Original file line number Diff line number Diff line change 58
58
from lightning .app .utilities .cloud import is_running_in_cloud
59
59
from lightning .app .utilities .component import _context
60
60
from lightning .app .utilities .enum import ComponentContext , OpenAPITags
61
- from lightning .app .utilities .imports import _is_starsessions_available
62
-
63
- if _is_starsessions_available ():
64
- from starsessions import SessionMiddleware
65
- else :
66
-
67
- class SessionMiddleware : # type: ignore[no-redef]
68
- pass
69
-
70
61
71
62
# TODO: fixed uuid for now, it will come from the FastAPI session
72
63
TEST_SESSION_UUID = "1234"
@@ -175,9 +166,6 @@ class StateUpdate(BaseModel):
175
166
allow_headers = ["*" ],
176
167
)
177
168
178
- if _is_starsessions_available ():
179
- fastapi_service .add_middleware (SessionMiddleware , secret_key = "secret" , autoload = True ) # noqa: S106
180
-
181
169
182
170
# General sequence is:
183
171
# * an update is generated in the UI
Original file line number Diff line number Diff line change @@ -103,10 +103,6 @@ def _is_streamlit_tensorboard_available() -> bool:
103
103
return module_available ("streamlit_tensorboard" )
104
104
105
105
106
- def _is_starsessions_available () -> bool :
107
- return module_available ("starsessions" )
108
-
109
-
110
106
def _is_gradio_available () -> bool :
111
107
return module_available ("gradio" )
112
108
You can’t perform that action at this time.
0 commit comments