adpro commited on
Commit
3f374a7
·
verified ·
1 Parent(s): 8f70bf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ async def analyze_path(file: UploadFile = File(...)):
29
  image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
30
 
31
  # 🔵 Resize ảnh để xử lý nhanh hơn
32
- image = image.resize((256, 256))
33
  image_np = np.array(image)
34
  flipped_image = cv2.flip(image_np, -1)
35
 
 
29
  image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
30
 
31
  # 🔵 Resize ảnh để xử lý nhanh hơn
32
+ image = image.resize((512, 512))
33
  image_np = np.array(image)
34
  flipped_image = cv2.flip(image_np, -1)
35