Asankhaya Sharma
commited on
Commit
·
2329c69
1
Parent(s):
e08fe24
allow preview of documents
Browse files- explorer.py +2 -2
explorer.py
CHANGED
@@ -4,9 +4,9 @@ import streamlit as st
|
|
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 |
-
|
|
|
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 |
+
st.write(document['content'])
|