szk1ck commited on
Commit
e55dc1c
·
1 Parent(s): ed139ff

change target file name

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -99,6 +99,7 @@ async def upload_image(image: UploadFile = File(...)):
99
  # 画像ファイルの内容を保存または処理する
100
  with open(temp_file_path, "wb") as buffer:
101
  shutil.copyfileobj(image.file, buffer)
102
- result = qrdec(image.filename)
 
103
  logger.info(f"response : {result}")
104
  return result
 
99
  # 画像ファイルの内容を保存または処理する
100
  with open(temp_file_path, "wb") as buffer:
101
  shutil.copyfileobj(image.file, buffer)
102
+ logger.info(f"target file : {temp_file_path}")
103
+ result = qrdec(temp_file_path)
104
  logger.info(f"response : {result}")
105
  return result