Spaces:
Running
on
Zero
Running
on
Zero
fix typo for presets
Browse files
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 =
|
117 |
return changed_width, changed_height, gr.update(open=False)
|
118 |
elif target_ratio == "16:9":
|
119 |
-
changed_width =
|
120 |
changed_height = 720
|
121 |
return changed_width, changed_height, gr.update(open=False)
|
122 |
elif target_ratio == "Custom":
|
123 |
-
return 720,
|
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)
|