Spaces:
Sleeping
Sleeping
Update private_gpt/launcher.py
Browse files- private_gpt/launcher.py +3 -1
private_gpt/launcher.py
CHANGED
|
@@ -124,9 +124,11 @@ def create_app(root_injector: Injector) -> FastAPI:
|
|
| 124 |
|
| 125 |
ui = root_injector.get(PrivateGptUi)
|
| 126 |
ui.mount_in_app(app, settings.ui.path)
|
|
|
|
| 127 |
else:
|
| 128 |
@app.get("/")
|
| 129 |
async def root():
|
| 130 |
-
|
|
|
|
| 131 |
|
| 132 |
return app
|
|
|
|
| 124 |
|
| 125 |
ui = root_injector.get(PrivateGptUi)
|
| 126 |
ui.mount_in_app(app, settings.ui.path)
|
| 127 |
+
|
| 128 |
else:
|
| 129 |
@app.get("/")
|
| 130 |
async def root():
|
| 131 |
+
return {"message": "Sparrow ML API"}
|
| 132 |
+
|
| 133 |
|
| 134 |
return app
|