returnf"resize: from <span class='resolution'>{p.width}x{p.height}</span> to <span class='resolution'>{p.hr_resize_x or p.hr_upscale_to_x}x{p.hr_resize_y or p.hr_upscale_to_y}</span>"
resize_mode=gr.Radio(label="Resize mode",elem_id="resize_mode",choices=["Just resize","Crop and resize","Resize and fill","Just resize (latent upscale)"],type="index",value="Just resize")
resize_mode=gr.Radio(label="Resize mode",elem_id="resize_mode",choices=["Just resize","Crop and resize","Resize and fill"],type="index",value="Just resize")