Spaces:
Runtime error
Runtime error
Update app.py
Browse files111 unmodified lines11211311411511611711811951 unmodified lines17117217317417517617717890 unmodified lines269270271272273274111 unmodified linesif ratio_choice == "16:9":target_ratio = (16, 9) # Set the new target ratio to 16:9target_width = 1280 # Adjust target width based on desired resolutionoverlap = 48fade_width = 24max_height = 720 # Adjust max height instead of width# Resize the image if it's taller than max_height51 unmodified linestarget_ratio=(9, 16)target_height=1280overlap=48fade_width=24max_width = 720# Resize the image if it's wider than max_widthif source.width > max_width:90 unmodified lines)run_button = gr.Button("Generate")with gr.Column():result = ImageSlider(111 unmodified lines11211311411511611711811951 unmodified lines17117217317417517617717890 unmodified lines269270271272273274275276277278279280281282283111 unmodified linesif ratio_choice == "16:9":target_ratio = (16, 9) # Set the new target ratio to 16:9target_width = 1280 # Adjust target width based on desired resolutionoverlap = 42#fade_width = 24max_height = 720 # Adjust max height instead of width# Resize the image if it's taller than max_height51 unmodified linestarget_ratio=(9, 16)target_height=1280overlap=42#fade_width=24max_width = 720# Resize the image if it's wider than max_widthif source.width > max_width:90 unmodified lines)run_button = gr.Button("Generate")gr.Examples(examples = [["/examples/example_1.webp", "RealVisXL V5.0 Lightning", "16:9"],["/examples/example_2.jpg", "RealVisXL V5.0 Lightning", "16:9"],["/examples/example_3.jpg", "RealVisXL V5.0 Lightning", "9:16"]],inputs = [input_image, model_selection, ratio])with gr.Column():result = ImageSlider(
app.py+13-4