Spaces:
Build error
Build error
Download explorer.py from niro-private/chatCSV: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/niro-private/chatCSV/resolve/main/explorer.py
- Command line
-
hf download hf://spaces/niro-private/chatCSV/explorer.py
-
curl -L -o explorer.py https://huggingface.co/spaces/niro-private/chatCSV/resolve/main/explorer.py
500 Bytes
| 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 | |