Spaces:
Paused
Paused
Update app.py
Browse files123456789101112131415import gradio as grfrom utils.t2i import t2i_genwith gr.Blocks(title="🪄 LayerDiffuse - Flux version ☔",theme="CultriX/gradio-theme") as demo:prompt = gr.Text(label="Prompt",info="Your prompt here",placeholder="E.g: glass bottle, high quality")if __name__ == "__main__":demo.queue(max_size=20).launch(show_error=True)12345678910111213141516171819202122232425262728293031323334353637383940414243import osimport gradio as grfrom utils.t2i import t2i_genMAX_SEED = np.iinfo(np.int32).maxMIN_IMAGE_SIZE = int(os.getenv("MIN_IMAGE_SIZE", "512"))MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "2048"))with gr.Blocks(title="🪄 LayerDiffuse - Flux version ☔",theme="CultriX/gradio-theme") as demo:gr.Markdown("""# 🪄 LayerDiffuse - Flux version ☔A Flux version implementation of LayerDiffuse ([LayerDiffuse](https://github.com/lllyasviel/LayerDiffuse))""")prompt = gr.Text(label="Prompt",info="Your prompt here",placeholder="E.g: glass bottle, high quality")with gr.Row:width = gr.Slider(label="Width",minimum=MIN_IMAGE_SIZE,maximum=MAX_IMAGE_SIZE,step=32,value=1024,)height = gr.Slider(label="Height",minimum=MIN_IMAGE_SIZE,maximum=MAX_IMAGE_SIZE,step=32,value=1024,)if __name__ == "__main__":demo.queue(max_size=20).launch(show_error=True)
app.py+28