Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,8 @@ def functionCall(fi_input, dropdown, choice):
|
|
118 |
return split_by_keywords(fi_input,dropdown)
|
119 |
|
120 |
def change_textbox(dropdown,radio):
|
121 |
-
|
|
|
122 |
if radio == "Intelligent split by keywords":
|
123 |
return gr.Dropdown(dropdown, multiselect=True, visible=True, allow_custom_value=True)
|
124 |
else:
|
|
|
118 |
return split_by_keywords(fi_input,dropdown)
|
119 |
|
120 |
def change_textbox(dropdown,radio):
|
121 |
+
if dropdown is None:
|
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)
|
125 |
else:
|