ArturG9 commited on
Commit
0cca84e
1 Parent(s): 2db6f20

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +1 -1
functions.py CHANGED
@@ -43,7 +43,7 @@ async def handle_userinput(user_question, custom_graph):
43
  )
44
 
45
  # Retrieve the documents from the graph's state (if available)
46
- docs = state_dict.get("documents", [])
47
 
48
  # Display the retrieved documents in the sidebar
49
  with st.sidebar:
 
43
  )
44
 
45
  # Retrieve the documents from the graph's state (if available)
46
+ docs = state("documents")
47
 
48
  # Display the retrieved documents in the sidebar
49
  with st.sidebar: