We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1892f68 commit f456ca5Copy full SHA for f456ca5
web-apps/flux-image-gen/gradio_ui.py
@@ -18,7 +18,9 @@ class Model(BaseModel):
18
19
class AppSettings(BaseModel):
20
models: List[Model]
21
- example_prompt: str
+ example_prompt: str = "Yoda riding a skateboard."
22
+ title = "Flux Image Generation Demo"
23
+
24
25
26
settings_path = pathlib.Path("/etc/gradio-app/gradio_config.yaml")
@@ -93,9 +95,8 @@ async def generate_image(
93
95
94
96
return image, seed, filename, None
97
-
-with gr.Blocks() as demo:
98
- gr.Markdown("# Flux Image Generation Demo")
+with gr.Blocks(title=settings.title) as demo:
99
+ gr.Markdown(f"# {settings.title}")
100
101
with gr.Row():
102
with gr.Column():
0 commit comments