forked from facebookresearch/OpenApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.py
More file actions
27 lines (21 loc) · 656 Bytes
/
Copy pathlaunch.py
File metadata and controls
27 lines (21 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
"""
"""
Launches OpenApps.
"""
# Third-party imports
import hydra
from omegaconf import DictConfig
# Project-specific imports
from open_apps.apps.start_page.main import app # need to import apps to serve
from open_apps.launcher import OpenAppsLauncher
@hydra.main(version_base=None, config_path="config", config_name="config")
def main(config: DictConfig):
launcher = OpenAppsLauncher(config)
launcher.launch()
if __name__ == "__main__":
main()