Ashoka74 commited on
Commit
adda03a
1 Parent(s): 90fe97e

Update app_3.py

Browse files
Files changed (1) hide show
  1. app_3.py +2 -6
app_3.py CHANGED
@@ -1202,18 +1202,14 @@ with block:
1202
  show_label=False,
1203
  columns=[3],
1204
  rows=[2],
1205
- object_fit="contain",
1206
  height="auto",
1207
  allow_preview=False,
1208
  )
1209
 
1210
  if orientation_result:
1211
  #selected = gr.Number(visible=False)
1212
- orientation_result.select(
1213
- update_extracted_fg_height, # Function to call on selection
1214
- inputs=None, # No inputs needed
1215
- outputs=extracted_fg # Output to update the extracted_fg component
1216
- ).then(use_orientation, inputs=None, outputs=extracted_fg)
1217
 
1218
  # output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
1219
  with gr.Group():
 
1202
  show_label=False,
1203
  columns=[3],
1204
  rows=[2],
1205
+ object_fit="fill",
1206
  height="auto",
1207
  allow_preview=False,
1208
  )
1209
 
1210
  if orientation_result:
1211
  #selected = gr.Number(visible=False)
1212
+ orientation_result.select(use_orientation, inputs=None, outputs=extracted_fg)
 
 
 
 
1213
 
1214
  # output_bg = gr.Image(type="numpy", label="Preprocessed Foreground", height=480)
1215
  with gr.Group():