@@ -69,8 +69,8 @@ def clear_cards(q, ignore: Optional[List[str]] = []) -> None:
69
69
async def chat (q : Q ):
70
70
q .page ["sidebar" ].value = "#chat"
71
71
72
- if q .args .table_dropdown :
73
- # If a table is selected, the trigger causes refresh of the page
72
+ if q .args .table_dropdown or q . args . model_choice_dropdown :
73
+ # If a table/model is selected, the trigger causes refresh of the page
74
74
# so we update chat history with table name selection and return
75
75
# avoiding re-drawing.
76
76
q .page ["chat_card" ].data += [q .args .chatbot , False ]
@@ -136,7 +136,7 @@ async def chat(q: Q):
136
136
name = "chatbot" ,
137
137
data = data (fields = "content from_user" , t = "list" , size = - 50 ),
138
138
),
139
- )
139
+ ),
140
140
add_card (
141
141
q ,
142
142
"additional_actions" ,
@@ -414,9 +414,9 @@ async def datasets(q: Q):
414
414
)
415
415
416
416
417
- @on ("#about " )
417
+ @on ("#documentation " )
418
418
async def about (q : Q ):
419
- q .page ["sidebar" ].value = "#about "
419
+ q .page ["sidebar" ].value = "#documentation "
420
420
clear_cards (q )
421
421
422
422
@@ -498,7 +498,7 @@ async def init(q: Q) -> None:
498
498
ui .nav_group (
499
499
"Help" ,
500
500
items = [
501
- ui .nav_item (name = "#about " , label = "About " ),
501
+ ui .nav_item (name = "#documentation " , label = "Documentation " ),
502
502
ui .nav_item (name = "#support" , label = "Support" ),
503
503
],
504
504
),
0 commit comments