chawin.chen commited on
Commit
16d78aa
·
1 Parent(s): 1cb5044
Files changed (1) hide show
  1. api_routes.py +1 -1
api_routes.py CHANGED
@@ -2775,7 +2775,7 @@ async def upscale_photo(
2775
  original_md5_hash = str(uuid.uuid4()).replace('-', '')
2776
  # 如果前端传递了md5参数则使用,否则使用original_md5_hash
2777
  actual_md5 = md5 if md5 else original_md5_hash
2778
- upscaled_filename = f"{actual_md5}_upscale.jpg"
2779
 
2780
  logger.info(f"Starting photo super resolution processing: {file.filename}, size={file.size}, scale={scale}x, model={model_name}, md5={original_md5_hash}")
2781
  t1 = time.perf_counter()
 
2775
  original_md5_hash = str(uuid.uuid4()).replace('-', '')
2776
  # 如果前端传递了md5参数则使用,否则使用original_md5_hash
2777
  actual_md5 = md5 if md5 else original_md5_hash
2778
+ upscaled_filename = f"{actual_md5}_upscale.webp"
2779
 
2780
  logger.info(f"Starting photo super resolution processing: {file.filename}, size={file.size}, scale={scale}x, model={model_name}, md5={original_md5_hash}")
2781
  t1 = time.perf_counter()