Commit e317d55a authored by novelailab's avatar novelailab

fix gen bug

parent 74a85f59
......@@ -125,7 +125,6 @@ class StableDiffusionModel(nn.Module):
x_sample = x_sample.tobytes()
#get base64 of x_sample
x_sample = str(base64.b64encode(x_sample))
base_count += 1
images.append(x_sample)
return images
\ No newline at end of file
......@@ -91,7 +91,7 @@ async def handle_logging_and_errors(request: Request, call_next):
response = await call_next(request)
process_time = time.perf_counter() - t
response.headers["X-Process-Time"] = str(process_time)
logger.info(f"Request took {t:.3f} seconds")
logger.info(f"Request took {t:0.3f} seconds")
f = open("/tmp/health_readiness", "w")
f.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment