Skip to content

Commit 77d50eb

Browse files
committed
update chatbot artefacts again
1 parent 17a9d22 commit 77d50eb

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
33 Bytes
Binary file not shown.

notebooks/tps/chatbot/chatbot-01.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
]
3030

3131

32+
# a hardwired list of models
33+
MODELS = [
34+
"gemma2:2b",
35+
"mistral:7b",
36+
]
37+
38+
3239
TITLE = "My first Chatbot"
3340

3441

@@ -49,8 +56,8 @@ def show_current_settings(_event):
4956
# the visual pieces
5057
streaming = ft.Checkbox(label="streaming", value=False)
5158
model = ft.Dropdown(
52-
options=[ft.dropdown.Option(model) for model in ("llama2", "mistral", "gemma")],
53-
value="llama2",
59+
options=[ft.dropdown.Option(model) for model in MODELS],
60+
value=MODELS[0],
5461
width=100,
5562
)
5663
server = ft.Dropdown(

0 commit comments

Comments
 (0)