Creating a phylogenetic tree with dash

This is my first time working with dash and I dont know how the structure works. I want to print an interactive phylogenetic tree. But the problem that I encounter with is "Traceback (most recent call last):
** File “C:\Users\gidio\PycharmProjects\flask_blog\”, line 199, in **
** children = [**
TypeError: unsupported operand type(s) for @: ‘list’ and ‘function’"
Here is my script in python. Do you know how can I deploy my dash functions in order for the app to be functional?

def main():
#extracting the OG code of the corresponfing gene tree
return OG

def gene_tree(OG,search_path):
…“”“reads and prints a newick file with’”“”
return gene_tree

def species_tree():
…“”“reads and prints the species tree with”“”
return species_tree

“”“flask application functions”“”
app = Dash(name)

app.layout = html.Div(
children = [
children=“Analyze Orthofinder data of Nitrogen Fixation clade(NFC)”),
dcc.Graph(figure= species_tree()),
dcc.Graph(figure = gene_tree(main(),search_path))]
#html.Div(dcc.Input(id=“input”, type=“text”, value=main())))
Output(“figure”, ),
if name == “main”:, port=8050)

Hi @GIDIO001 formatting your code would increase your chances to be helped :wink: