RKP64 commited on
Commit
e986dfd
·
1 Parent(s): 403c7a1

Upload explorer.py

Browse files
Files changed (1) hide show
  1. explorer.py +12 -0
explorer.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+
4
+ def view_document(supabase):
5
+ # Get the document from the database
6
+ response = supabase.table("documents").select("content").execute()
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
+ continue