Kiadee's picture
Update app.py
b2475e6 verified
Raw
History Blame Contribute Delete
908 Bytes
# app.py
# Brand: Eburon ImageGen
# Notes:
# - Keeps the same Gradio + gr.load flow you provided.
# - Rebrands the UI text to "Eburon ImageGen" and removes upstream/provider naming from the sidebar copy.
# - Still uses the same model + provider parameters under the hood (no functional change).
import gradio as gr
APP_TITLE = "Eburon ImageGen"
APP_TAGLINE = "Fast image generation + editing (hosted inference)."
with gr.Blocks(fill_height=True, title=APP_TITLE) as demo:
with gr.Sidebar():
gr.Markdown(f"# {APP_TITLE}")
gr.Markdown(APP_TAGLINE)
gr.Markdown(
"Sign in to enable the hosted inference backend for this workspace."
)
button = gr.LoginButton("Sign in")
# Under the hood: unchanged model + provider wiring.
gr.load(
"models/Tongyi-MAI/Z-Image",
accept_token=button,
provider="fal-ai",
)
demo.launch()