Update handler.py
Browse files- handler.py +5 -8
handler.py
CHANGED
@@ -362,12 +362,9 @@ class EndpointHandler:
|
|
362 |
|
363 |
if not input_image and not input_prompt:
|
364 |
raise ValueError("Either prompt or image must be provided")
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
logger.info(f"Raw parameters:")
|
370 |
-
pprint.pprint(params)
|
371 |
|
372 |
# Create and validate configuration
|
373 |
config = GenerationConfig(
|
@@ -397,8 +394,8 @@ class EndpointHandler:
|
|
397 |
quality=params.get("quality", GenerationConfig.quality),
|
398 |
).validate_and_adjust()
|
399 |
|
400 |
-
logger.
|
401 |
-
pprint.pprint(config)
|
402 |
|
403 |
try:
|
404 |
with torch.no_grad():
|
|
|
362 |
|
363 |
if not input_image and not input_prompt:
|
364 |
raise ValueError("Either prompt or image must be provided")
|
365 |
+
|
366 |
+
#logger.debug(f"Raw parameters:")
|
367 |
+
# pprint.pprint(params)
|
|
|
|
|
|
|
368 |
|
369 |
# Create and validate configuration
|
370 |
config = GenerationConfig(
|
|
|
394 |
quality=params.get("quality", GenerationConfig.quality),
|
395 |
).validate_and_adjust()
|
396 |
|
397 |
+
#logger.debug(f"Global request settings:")
|
398 |
+
#pprint.pprint(config)
|
399 |
|
400 |
try:
|
401 |
with torch.no_grad():
|