File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 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"}
414import panel as pn
515from panel_web_llm import WebLLM
616
717pn.extension()
818
919web_llm = WebLLM(load_layout="column")
1020chat_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-
1428template = pn.template.FastListTemplate(
1529 title="Web LLM Interface",
1630 main=[chat_interface],
You can’t perform that action at this time.
0 commit comments