Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
with gr.Sidebar():
|
| 5 |
-
gr.Markdown("#
|
| 6 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
|
| 7 |
button = gr.LoginButton("Sign in")
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
demo.launch()
|
|
|
|
| 1 |
+
# app.py
|
| 2 |
+
# Brand: Eburon ImageGen
|
| 3 |
+
# Notes:
|
| 4 |
+
# - Keeps the same Gradio + gr.load flow you provided.
|
| 5 |
+
# - Rebrands the UI text to "Eburon ImageGen" and removes upstream/provider naming from the sidebar copy.
|
| 6 |
+
# - Still uses the same model + provider parameters under the hood (no functional change).
|
| 7 |
+
|
| 8 |
import gradio as gr
|
| 9 |
|
| 10 |
+
APP_TITLE = "Eburon ImageGen"
|
| 11 |
+
APP_TAGLINE = "Fast image generation + editing (hosted inference)."
|
| 12 |
+
|
| 13 |
+
with gr.Blocks(fill_height=True, title=APP_TITLE) as demo:
|
| 14 |
with gr.Sidebar():
|
| 15 |
+
gr.Markdown(f"# {APP_TITLE}")
|
| 16 |
+
gr.Markdown(APP_TAGLINE)
|
| 17 |
+
gr.Markdown(
|
| 18 |
+
"Sign in to enable the hosted inference backend for this workspace."
|
| 19 |
+
)
|
| 20 |
button = gr.LoginButton("Sign in")
|
| 21 |
+
|
| 22 |
+
# Under the hood: unchanged model + provider wiring.
|
| 23 |
+
gr.load(
|
| 24 |
+
"models/Tongyi-MAI/Z-Image",
|
| 25 |
+
accept_token=button,
|
| 26 |
+
provider="fal-ai",
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
demo.launch()
|