File size: 493 Bytes
bcc8503
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
def set_defaults(state):
    print("---- Setting defaults ----")
    
    if not state["audience"] or state["audience"] is None:
        state.update({"audience": "experts"})   

    sources_input = state["sources_input"] if "sources_input" in state else ["auto"]
    state.update({"sources_input": sources_input})  

    # if not state["sources_input"] or state["sources_input"] is None:
    #     state.update({"sources_input": ["auto"]})  
                                 
    return state