Skip to content

Commit cadec0f

Browse files
committed
Add tab title and text copy buttons
1 parent 56e98e1 commit cadec0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web-apps/chat/app.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,15 @@ def inference_wrapper(*args):
163163
fill_height=True,
164164
theme=theme,
165165
css=settings.css_overrides,
166-
js=settings.custom_javascript
166+
js=settings.custom_javascript,
167+
title=settings.page_title,
167168
) as demo:
168-
gr.ChatInterface(
169+
gr.Markdown('# ' + settings.page_title)
170+
gr.ChatInterface(
169171
inference_wrapper,
170172
type="messages",
171-
title=settings.page_title,
172173
analytics_enabled=False,
174+
chatbot=gr.Chatbot(show_copy_button=True),
173175
)
174176

175177

0 commit comments

Comments
 (0)