Skip to content

Commit f6fd81c

Browse files
committed
update examples
1 parent 41e01af commit f6fd81c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/examples.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
# Examples
22

3-
```{.python pycafe-embed pycafe-embed-style="border: 1px solid #e6e6e6; border-radius: 8px;" pycafe-embed-width="100%" pycafe-embed-height="400px" pycafe-embed-scale="1.0"}
3+
```{.python pycafe-embed pycafe-embed-style="border: 1px solid #e6e6e6; border-radius: 8px;" pycafe-embed-width="100%" pycafe-embed-height="650px" pycafe-embed-scale="1.0"}
4+
import panel as pn
5+
from panel_web_llm import WebLLMInterface
6+
7+
pn.extension()
8+
9+
web_llm_interface = WebLLMInterface()
10+
web_llm_interface.servable()
11+
```
12+
13+
```{.python pycafe-embed pycafe-embed-style="border: 1px solid #e6e6e6; border-radius: 8px;" pycafe-embed-width="100%" pycafe-embed-height="650px" pycafe-embed-scale="1.0"}
414
import panel as pn
515
from panel_web_llm import WebLLM
616
717
pn.extension()
818
919
web_llm = WebLLM(load_layout="column")
1020
chat_interface = pn.chat.ChatInterface(
21+
help_text="First load a model to chat with it.",
1122
callback=web_llm.callback,
23+
show_button_name=False,
24+
show_rerun=False,
25+
show_undo=False,
26+
show_clear=False,
1227
)
13-
1428
template = pn.template.FastListTemplate(
1529
title="Web LLM Interface",
1630
main=[chat_interface],

0 commit comments

Comments
 (0)