heymenn commited on
Commit
a0f7ce7
1 Parent(s): 8a5e57f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -118,9 +118,7 @@ def functionCall(fi_input, dropdown, choice):
118
  return split_by_keywords(fi_input,dropdown)
119
 
120
  def change_textbox(dropdown,radio):
121
- print(f"dropdown : {dropdown}")
122
- print(dropdown is None)
123
- if dropdown is None:
124
  dropdown = ["introduction", "objective", "summary", "conclusion"]
125
  if radio == "Intelligent split by keywords":
126
  return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True)
 
118
  return split_by_keywords(fi_input,dropdown)
119
 
120
  def change_textbox(dropdown,radio):
121
+ if len(dropdown) == 0 :
 
 
122
  dropdown = ["introduction", "objective", "summary", "conclusion"]
123
  if radio == "Intelligent split by keywords":
124
  return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True)