Spaces:
Sleeping
Sleeping
| # 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() |