Hello, i have a basic question on ClearML purposes. i want it to receive tasks from front-end, like this: app = FastAPI() @app.post("/create_task") def creat...
28 days ago
@<1523701070390366208:profile|CostlyOstrich36> thx a lot, i'll check it out right now
@<1523701070390366208:profile|CostlyOstrich36>
it is starting uvicorn server on agent :)
Now i can do that by spawning subprocess like this:
app = FastAPI()
@app.post("/create_task")
def create_task(input_data: InputData):
os.system("python main-pipeline.py")
return {
"message": "Task created successfully",
}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8000)
I'm expecting that json post request will spawn a task at clearm server/worker
I'm trying to build a back end app, that receives jsons with inference tasks