YchKhan commited on
Commit
4d16651
1 Parent(s): ae9b962

Update split_files_to_excel.py

Browse files
Files changed (1) hide show
  1. split_files_to_excel.py +4 -2
split_files_to_excel.py CHANGED
@@ -77,8 +77,10 @@ def function_split_call(fi_input, dropdown, choice, chunk_size):
77
  def change_textbox(dropdown,radio):
78
  if len(dropdown) == 0 :
79
  dropdown = ["introduction", "objective", "summary", "conclusion"]
80
- if radio == "Intelligent split by keywords":
81
- return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True), gr.Number(label="First pages to keep (0 for all)", value=2, interactive=True, visible=True)
 
 
82
  elif radio == "Non intelligent split":
83
  return gr.Dropdown(dropdown, visible=False),gr.Number(label="Chunk size", value=1000, interactive=True, visible=True)
84
  else:
 
77
  def change_textbox(dropdown,radio):
78
  if len(dropdown) == 0 :
79
  dropdown = ["introduction", "objective", "summary", "conclusion"]
80
+ if radio == "Intelligent split":
81
+ return gr.Dropdown(dropdown, visible=False), gr.Number(visible=False)label="First pages to keep (0 for all)", value=2, interactive=True, visible=True)
82
+ elif radio == "Intelligent split by keywords":
83
+ return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True), gr.Number(visible=False)
84
  elif radio == "Non intelligent split":
85
  return gr.Dropdown(dropdown, visible=False),gr.Number(label="Chunk size", value=1000, interactive=True, visible=True)
86
  else: