File size: 577 Bytes
e03aa3c
 
 
 
 
 
 
f0639ce
e03aa3c
 
 
 
 
 
f0639ce
 
e03aa3c
f0639ce
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

from openenv.core.env_server import create_app
import uvicorn

from models import DocAction, DocObservation
from .cust_env_environment import DocSweeperEnvironment

app = create_app(DocSweeperEnvironment, DocAction, DocObservation, env_name="doc_sweeper")

def main():
    uvicorn.run("server.app:app", host="0.0.0.0", port=8000)

if __name__ == '__main__':
    main()