Asankhaya Sharma commited on
Commit
d536adc
1 Parent(s): 995a6ce
Files changed (1) hide show
  1. explorer.py +3 -1
explorer.py CHANGED
@@ -7,6 +7,8 @@ def view_document(supabase):
7
  # st.write("**This feature is in active development**")
8
  # Display a list of elements from the documents
9
  # If the user clicks on an element, display the content of the document
 
10
  for document in response.data:
11
- if st.button(document['content'][:50].replace("\n", " ")):
 
12
  st.write(document['content'])
 
7
  # st.write("**This feature is in active development**")
8
  # Display a list of elements from the documents
9
  # If the user clicks on an element, display the content of the document
10
+ i = 0
11
  for document in response.data:
12
+ i += 1
13
+ if st.button(document['content'][:50].replace("\n", " "), key = str(i)):
14
  st.write(document['content'])