Allow users to select reasoning pipeline. Fix small issues with user UI, cohere name (#50)

* Fix user page

* Allow changing LLM in reasoning pipeline

* Fix CohereEmbedding name
This commit is contained in:
Duc Nguyen (john)
2024-04-25 17:18:12 +07:00
committed by GitHub
parent e29bec6275
commit a8725710af
6 changed files with 44 additions and 13 deletions

View File

@@ -142,7 +142,7 @@ class UserManagement(BasePage):
)
self.admin_edit = gr.Checkbox(label="Admin")
with gr.Row() as self._selected_panel_btn:
with gr.Row(visible=False) as self._selected_panel_btn:
with gr.Column():
self.btn_edit_save = gr.Button("Save")
with gr.Column():
@@ -338,7 +338,7 @@ class UserManagement(BasePage):
if not ev.selected:
return -1
return user_list["id"][ev.index[0]]
return int(user_list["id"][ev.index[0]])
def on_selected_user_change(self, selected_user_id):
if selected_user_id == -1: