Update
This commit is contained in:
parent
edcfb81f61
commit
f0c9585c58
2
main.py
2
main.py
@ -19,7 +19,7 @@ def run_compute(a,b,sigma):
|
|||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True
|
text=True
|
||||||
)
|
)
|
||||||
return result.stdout.strip()
|
return int(result.stdout.strip())
|
||||||
|
|
||||||
@app.post("/compute")
|
@app.post("/compute")
|
||||||
async def compute(data: ComputeInput):
|
async def compute(data: ComputeInput):
|
||||||
|
Loading…
Reference in New Issue
Block a user