File size: 547 Bytes
9144d63
 
 
 
 
 
 
 
 
470bc35
 
f3ce9bb
470bc35
9144d63
 
 
 
 
 
 
 
 
 
 
 
 
 
80c8959
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
import uvicorn
import argparse
import sys
from pathlib import Path
from openenv.core.env_server import create_web_interface_app

path = Path(__file__).resolve().parent.parent
sys.path.append(str(path))


from models import ActionModel, ObservationModel
from .environment import DataCleaningEnv



app = create_web_interface_app(
    DataCleaningEnv,
    ActionModel,
    ObservationModel,
)



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

if __name__ == "__main__":
    main()