Spaces:
Sleeping
Sleeping
File size: 737 Bytes
ab34aa7 | 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 31 32 33 | """FastAPI app entrypoint for TalkingHeadBench OpenEnv server."""
from __future__ import annotations
import sys
from pathlib import Path
from openenv.core.env_server.http_server import create_app
from openenv.core.env_server.types import Action, Observation
ROOT = Path(__file__).resolve().parent.parent
if str(ROOT) not in sys.path:
sys.path.insert(0, str(ROOT))
from server.talking_head_environment import TalkingHeadEnvironment
app = create_app(
TalkingHeadEnvironment,
Action,
Observation,
env_name="talking_head_bench",
)
def main() -> None:
"""Run the TalkingHeadBench environment server."""
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
if __name__ == "__main__":
main() |