cryogenic22 commited on
Commit
79bef70
·
verified ·
1 Parent(s): 391f64c

Update components/document_preview.py

Browse files
Files changed (1) hide show
  1. components/document_preview.py +6 -3
components/document_preview.py CHANGED
@@ -1,6 +1,9 @@
1
-
2
  # components/document_preview.py
3
- def enhanced_document_preview(doc: Dict):
 
 
 
 
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}")