From 5a463492480105da39dd6c1ed87ddc2dc09b5d50 Mon Sep 17 00:00:00 2001 From: PawelDopierala Date: Tue, 26 Nov 2024 21:44:09 +0100 Subject: [PATCH] Update --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 3011099..218a456 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ class ComputeInput(BaseModel): def run_compute(a,b,sigma): result = subprocess.run( - ['./computeC', a, b, sigma], + ['./computeC', str(a), str(b), sigma], capture_output=True, text=True ) @@ -25,7 +25,7 @@ def run_compute(a,b,sigma): async def compute(data: ComputeInput): a_start = int(data.a) b_end = int(data.b) - sigma = int(data.sigma) + sigma = data.sigma num_chunks = 16