import gradio as gr import diff sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png" platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png' star = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/star.png' bomb = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/bomb.png' dude = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/dude.png' html_mod=f"""
""" def dif_fn(inp): output=diff.send_it(inp,5,1) return output[0] with gr.Blocks() as app: with gr.Row(): with gr.Column(): prompt=gr.Textbox() btn=gr.Button() out_im=gr.Image() gr.HTML(html_mod) btn.click(dif_fn,prompt,out_im) app.launch()