import gradio as gr import numpy as np def flip_image(x): spell = ''; spell += 'Este pixel es limpiado de energía caotica, dañida y de la mala intención'; spell += 'pero mantiene cualquier energía sana de los lugares, seres y obejtos presentes'; spell += 'OM AH HUNG, para limpiar' spell += 'este pixel es activado magicamente para emanar buena energia'; spell += 'reforzamos la buena energía, las buenas intenciones, los buenos deseos, el amor'; spell += 'OM MANI PADME HUNG'; spell += 'para el beneficio de todos los seres'; return x with gr.Blocks() as demo: gr.Markdown("# Radionic App") with gr.Row(): image_input = gr.Image().style(height=200, width=200) image_output = gr.Image().style(height=200, width=200) image_button = gr.Button("Clean and protect the image") image_button.click(flip_image, inputs=image_input, outputs=image_output) examples = gr.Examples(examples=["bernd-dittrich-unsplash (1).jpg"], inputs=[image_input]) demo.launch()