This commit is contained in:
PawelDopierala 2024-11-26 21:44:09 +01:00
parent dda84c5ed8
commit 5a46349248

View File

@ -15,7 +15,7 @@ class ComputeInput(BaseModel):
def run_compute(a,b,sigma): def run_compute(a,b,sigma):
result = subprocess.run( result = subprocess.run(
['./computeC', a, b, sigma], ['./computeC', str(a), str(b), sigma],
capture_output=True, capture_output=True,
text=True text=True
) )
@ -25,7 +25,7 @@ def run_compute(a,b,sigma):
async def compute(data: ComputeInput): async def compute(data: ComputeInput):
a_start = int(data.a) a_start = int(data.a)
b_end = int(data.b) b_end = int(data.b)
sigma = int(data.sigma) sigma = data.sigma
num_chunks = 16 num_chunks = 16