mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 07:59:00 +03:00
11 lines
351 B
Python
11 lines
351 B
Python
import streamlit as st
|
|
|
|
|
|
def sidebar(supabase):
|
|
st.sidebar.title("Database Information")
|
|
number_of_docs = number_of_documents(supabase)
|
|
st.sidebar.markdown(f"**Docs in DB:** {number_of_docs}")
|
|
|
|
def number_of_documents(supabase):
|
|
documents = supabase.table("documents").select("id", count="exact").execute()
|
|
return documents.count |