Spaces:
Runtime error
Runtime error
Update app.py
Browse files80 unmodified lines81828384858687888990919293949516 unmodified lines11211311411511611711811912012180 unmodified linesreturn stylized_imagewith gr.Blocks() as demo:gr.HTML("<h1><center> 🐑 Art Generation with Neural Style Transfer </center></h1>")with gr.Row():style_reference_input_gallery = gr.Gallery(list(style_urls.values()),#width = 512,height = 768 + 256,label = "Style Image gallery (click to use)")with gr.Column():super_resolution_type = gr.Radio(["none" ,"base", "anime"], type="value", default="none", label="model used to super resolution the Image Transformed")style_reference_input_image = gr.Image(label = "Style Image (you can upload yourself or click from left gallery)",#width = 512,16 unmodified linesgr.Examples([[style_urls["Kanagawa great wave"], style_urls["Kadishman"]],[style_urls["Derkovits woman head"], style_urls["Kadishman"]],],inputs = [style_reference_input_image, content_image_input],label = "Transform Examples")80 unmodified lines81828384858687888990919293949516 unmodified lines11211311411511611711811912012112280 unmodified linesreturn stylized_imagewith gr.Blocks() as demo:gr.HTML("<h1><center> 🐑 Art Generation with Neural Style Transfer Fixed by Real-ESRGAN </center></h1>")with gr.Row():style_reference_input_gallery = gr.Gallery(list(style_urls.values()),#width = 512,height = 768 + 128,label = "Style Image gallery (click to use)")with gr.Column():super_resolution_type = gr.Radio(["none" ,"base", "anime"], type="value", default="none", label="choose Real-ESRGAN model type used to super resolution the Image Transformed")style_reference_input_image = gr.Image(label = "Style Image (you can upload yourself or click from left gallery)",#width = 512,16 unmodified linesgr.Examples([[style_urls["Kanagawa great wave"], style_urls["Kadishman"], "none"],[style_urls["Derkovits woman head"], style_urls["Kadishman"], "base"],[style_urls["Kadishman"], style_urls["Kadishman"], "anime"],],inputs = [style_reference_input_image, content_image_input, super_resolution_type],label = "Transform Examples")
app.py+7-6