marcellopoliti commited on
Commit
1f71023
1 Parent(s): 6dfa129

test: remove tab7

Browse files
Files changed (1) hide show
  1. pages/manage_knowledge_box.py +33 -23
pages/manage_knowledge_box.py CHANGED
@@ -187,7 +187,7 @@ else:
187
  st.warning(f"{collection_name} KB is empty")
188
 
189
 
190
- tab1, tab2, tab3, tab4, tab5, tab6, tab7 = st.tabs(
191
  [
192
  "Remove",
193
  "Add URL",
@@ -195,10 +195,20 @@ tab1, tab2, tab3, tab4, tab5, tab6, tab7 = st.tabs(
195
  "Add PDF",
196
  "Add Youtube",
197
  "Notion and Jina",
198
- "Rename",
199
  ]
200
  )
201
 
 
 
 
 
 
 
 
 
 
 
 
202
  # remove stuff tab
203
  with tab1:
204
  # remove a split
@@ -341,24 +351,24 @@ with tab6:
341
  except Exception as e:
342
  st.error(f"{str(e)}")
343
 
344
- with tab7:
345
-
346
- # remove a split
347
- st.header("Rename collection")
348
- new_name = st.text_input("New collection name")
349
- collection_info, coll, client = get_knowledge_base_information(
350
- client=client,
351
- embedding_function=default_embedding_function,
352
- kb_name=collection_name,
353
- )
354
-
355
- if st.button("rename"):
356
- try:
357
- coll.modify(
358
- name=new_name,
359
- )
360
- except Exception as e:
361
- st.error(f"{str(e)}")
362
- st.success("Done")
363
- time.sleep(1)
364
- st.experimental_rerun()
 
187
  st.warning(f"{collection_name} KB is empty")
188
 
189
 
190
+ tab1, tab2, tab3, tab4, tab5, tab6 = st.tabs(
191
  [
192
  "Remove",
193
  "Add URL",
 
195
  "Add PDF",
196
  "Add Youtube",
197
  "Notion and Jina",
 
198
  ]
199
  )
200
 
201
+ # tab1, tab2, tab3, tab4, tab5, tab6, tab7 = st.tabs(
202
+ # [
203
+ # "Remove",
204
+ # "Add URL",
205
+ # "Multiple URL",
206
+ # "Add PDF",
207
+ # "Add Youtube",
208
+ # "Notion and Jina",
209
+ # "Rename",
210
+ # ]
211
+ # )
212
  # remove stuff tab
213
  with tab1:
214
  # remove a split
 
351
  except Exception as e:
352
  st.error(f"{str(e)}")
353
 
354
+ # with tab7:
355
+
356
+ # # remove a split
357
+ # st.header("Rename collection")
358
+ # new_name = st.text_input("New collection name")
359
+ # collection_info, coll, client = get_knowledge_base_information(
360
+ # client=client,
361
+ # embedding_function=default_embedding_function,
362
+ # kb_name=collection_name,
363
+ # )
364
+
365
+ # if st.button("rename"):
366
+ # try:
367
+ # coll.modify(
368
+ # name=new_name,
369
+ # )
370
+ # except Exception as e:
371
+ # st.error(f"{str(e)}")
372
+ # st.success("Done")
373
+ # time.sleep(1)
374
+ # st.experimental_rerun()