Skip to content

Commit 3574d6b

Browse files
committed
Set the default values to Interface.title and ChatInterface.title
1 parent 276d6f2 commit 3574d6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradio/chat_interface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
run_examples_on_click: bool = True,
8282
cache_examples: bool | None = None,
8383
cache_mode: Literal["eager", "lazy"] | None = None,
84-
title: str | None = None,
84+
title: str = "Gradio",
8585
description: str | None = None,
8686
theme: Theme | str | None = None,
8787
css: str | None = None,

gradio/interface.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(
107107
examples_per_page: int = 10,
108108
example_labels: list[str] | None = None,
109109
live: bool = False,
110-
title: str | None = None,
110+
title: str = "Gradio",
111111
description: str | None = None,
112112
article: str | None = None,
113113
theme: Theme | str | None = None,
@@ -190,7 +190,7 @@ def __init__(
190190
super().__init__(
191191
analytics_enabled=analytics_enabled,
192192
mode="interface",
193-
title=title or "Gradio",
193+
title=title,
194194
theme=theme,
195195
css=css,
196196
css_paths=css_paths,

0 commit comments

Comments
 (0)