Spaces:
Runtime error
Runtime error
File size: 287 Bytes
cdca970 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import streamlit as st
def display_source_document(source_document: list):
for i,source in enumerate(source_document):
st.markdown(f"""{i+1}. ##### Source content
- {source["page_content"]}
- Page number: {source["metadata"]["page"]}
"""
)
|