yangdx
commited on
Commit
Β·
c4b77bf
1
Parent(s):
449f8a0
Move server ready message to lifespan
Browse files
lightrag/api/lightrag_server.py
CHANGED
@@ -181,6 +181,8 @@ def create_app(args):
|
|
181 |
"Skip document scanning(another scanning is active)"
|
182 |
)
|
183 |
|
|
|
|
|
184 |
yield
|
185 |
|
186 |
finally:
|
|
|
181 |
"Skip document scanning(another scanning is active)"
|
182 |
)
|
183 |
|
184 |
+
ASCIIColors.green("\nServer is ready to accept connections! π\n")
|
185 |
+
|
186 |
yield
|
187 |
|
188 |
finally:
|
lightrag/api/utils_api.py
CHANGED
@@ -548,7 +548,5 @@ def display_splash_screen(args: argparse.Namespace) -> None:
|
|
548 |
Make sure to include the X-API-Key header in all your requests.
|
549 |
""")
|
550 |
|
551 |
-
ASCIIColors.green("Server is ready to accept connections! π\n")
|
552 |
-
|
553 |
# Ensure splash output flush to system log
|
554 |
sys.stdout.flush()
|
|
|
548 |
Make sure to include the X-API-Key header in all your requests.
|
549 |
""")
|
550 |
|
|
|
|
|
551 |
# Ensure splash output flush to system log
|
552 |
sys.stdout.flush()
|