forked from facebookresearch/OpenApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch_agent.py
More file actions
30 lines (23 loc) · 736 Bytes
/
Copy pathlaunch_agent.py
File metadata and controls
30 lines (23 loc) · 736 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
28
29
30
"""
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 agent in OpenApps to perform a given single task.
"""
# Third-party imports
import hydra
from omegaconf import DictConfig
from dotenv import load_dotenv
load_dotenv()
# Project-specific imports
from open_apps.apps.start_page.main import app # need to import apps to serve
from open_apps.launcher import AgentLauncher
@hydra.main(version_base=None, config_path="config", config_name="config")
def main(config: DictConfig):
launcher = AgentLauncher(config)
launcher.launch()
if __name__ == "__main__":
main()