Unanswered
Hello, I Have A Basic Question On Clearml Purposes.
I Want It To Receive Tasks From Front-End, Like This:
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)
25 Views
0
Answers
2 months ago
2 months ago