Spaces:
Build error
Build error
File size: 500 Bytes
b516cf5 a427483 b516cf5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | import streamlit as st
def view_document(supabase):
# Get the document from the database
response = supabase.table("documents").select("content").execute()
st.write("**This feature is in active development**")
# Display a list of elements from the documents
# If the user clicks on an element, display the content of the document
for idx, document in enumerate(response.data):
if st.button(document['content'][:50].replace("\n", " "), key=idx):
continue
|