AItool commited on
Commit
ccf8eb8
·
verified ·
1 Parent(s): 1df7ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -228,7 +228,7 @@ async def upload_file(file: UploadFile = File(...), padding_type: str = Form(...
228
 
229
  # Resize the image for display (512px by 512px)
230
  display_img = rectangled_img.copy()
231
- if (padding_type=="top_bottom")
232
  display_img.thumbnail((512, *)) # Resize for display
233
  else
234
  display_img.thumbnail((*, 512)) # Resize for display
 
228
 
229
  # Resize the image for display (512px by 512px)
230
  display_img = rectangled_img.copy()
231
+ if (padding_type=="top_bottom"):
232
  display_img.thumbnail((512, *)) # Resize for display
233
  else
234
  display_img.thumbnail((*, 512)) # Resize for display