jbilcke-hf HF staff commited on
Commit
ccbe184
·
verified ·
1 Parent(s): 75e57c9

Update handler.py

Browse files
Files changed (1) hide show
  1. 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
- if input_prompt:
367
- logger.info(f"Prompt: {input_prompt}")
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.info(f"Global request settings:")
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():