Kiadee commited on
Commit
b2475e6
·
verified ·
1 Parent(s): 0924409

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -5
app.py CHANGED
@@ -1,10 +1,29 @@
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
- with gr.Blocks(fill_height=True) as demo:
 
 
 
4
  with gr.Sidebar():
5
- gr.Markdown("# Inference Provider")
6
- gr.Markdown("This Space showcases the Tongyi-MAI/Z-Image model, served by the fal-ai API. Sign in with your Hugging Face account to use this API.")
 
 
 
7
  button = gr.LoginButton("Sign in")
8
- gr.load("models/Tongyi-MAI/Z-Image", accept_token=button, provider="fal-ai")
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()