seta-openreward / server.py
AdithyaSK's picture
AdithyaSK HF Staff
Deploy upstream SETA on HF Spaces with OpenReward backend
7c28b65
raw
history blame contribute delete
433 Bytes
"""SETA server entrypoint.
The openreward Server defaults to 0.0.0.0:8080. HF Spaces injects a PORT
env var when present — we honor that so the same image runs on Spaces
and on platforms that pick a port at runtime.
"""
import os
from openreward.environments import Server
from seta import SETAEnv
if __name__ == "__main__":
port = int(os.environ.get("PORT", "8080"))
Server([SETAEnv]).run(host="0.0.0.0", port=port)