fffiloni commited on
Commit
4b78a6c
1 Parent(s): 0ef5dee

fix typo for presets

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -113,14 +113,14 @@ def infer(image, model_selection, width, height, overlap_width, num_inference_st
113
  def preload_presets(target_ratio):
114
  if target_ratio == "9:16":
115
  changed_width = 720
116
- changed_height = 1024
117
  return changed_width, changed_height, gr.update(open=False)
118
  elif target_ratio == "16:9":
119
- changed_width = 1024
120
  changed_height = 720
121
  return changed_width, changed_height, gr.update(open=False)
122
  elif target_ratio == "Custom":
123
- return 720, 1024, gr.update(open=True)
124
 
125
  def clear_result():
126
  return gr.update(value=None)
 
113
  def preload_presets(target_ratio):
114
  if target_ratio == "9:16":
115
  changed_width = 720
116
+ changed_height = 1280
117
  return changed_width, changed_height, gr.update(open=False)
118
  elif target_ratio == "16:9":
119
+ changed_width = 1280
120
  changed_height = 720
121
  return changed_width, changed_height, gr.update(open=False)
122
  elif target_ratio == "Custom":
123
+ return 720, 1280, gr.update(open=True)
124
 
125
  def clear_result():
126
  return gr.update(value=None)