Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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)
|