Commit e4f24e05 authored by novelailab's avatar novelailab

a

parent ae1c6d94
...@@ -35,5 +35,5 @@ EXPOSE 50051 ...@@ -35,5 +35,5 @@ EXPOSE 50051
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . . COPY . .
#CMD [ "gunicorn", "main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80" ] CMD [ "gunicorn", "main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80" ]
CMD [ "python3", "main.py" ] #CMD [ "python3", "main.py" ]
\ No newline at end of file \ No newline at end of file
...@@ -74,6 +74,7 @@ def generate(request: GenerationRequest): ...@@ -74,6 +74,7 @@ def generate(request: GenerationRequest):
images = model.sample(request) images = model.sample(request)
process_time = time.perf_counter() - t process_time = time.perf_counter() - t
logger.info(f"Request took {process_time:0.3f} seconds") logger.info(f"Request took {process_time:0.3f} seconds")
print(images)
return {"generations": images} return {"generations": images}
except Exception as e: except Exception as e:
......
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