Update components/document_preview.py
Browse files
components/document_preview.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
-
|
| 2 |
# components/document_preview.py
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"""Enhanced document preview component."""
|
| 5 |
with st.container():
|
| 6 |
# Header with metadata
|
|
@@ -46,4 +49,4 @@ def enhanced_document_preview(doc: Dict):
|
|
| 46 |
with col2:
|
| 47 |
st.write("**Collections**")
|
| 48 |
for collection in doc.get('collections', []):
|
| 49 |
-
st.write(f"• {collection}")
|
|
|
|
|
|
|
| 1 |
# components/document_preview.py
|
| 2 |
+
import streamlit as st
|
| 3 |
+
from typing import Dict, List, Optional, Any
|
| 4 |
+
from datetime import datetime
|
| 5 |
+
|
| 6 |
+
def enhanced_document_preview(doc: Dict[str, Any]):
|
| 7 |
"""Enhanced document preview component."""
|
| 8 |
with st.container():
|
| 9 |
# Header with metadata
|
|
|
|
| 49 |
with col2:
|
| 50 |
st.write("**Collections**")
|
| 51 |
for collection in doc.get('collections', []):
|
| 52 |
+
st.write(f"• {collection}")
|