DrishtiSharma commited on
Commit
8ec9856
Β·
verified Β·
1 Parent(s): c98699f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -119,12 +119,13 @@ if not st.session_state.pdf_loaded and "pdf_path" in st.session_state:
119
  # Extract metadata
120
  metadata = extract_metadata_llm(st.session_state.pdf_path)
121
 
122
- # Display extracted metadata
123
  st.subheader("πŸ“„ Extracted Document Metadata")
124
- st.write(f"**Title:** {title}")
125
- st.write(f"**Author:** {author}")
126
- st.write(f"**Emails:** {email_str}")
127
- st.write(f"**Affiliations:** {affiliation_str}")
 
128
 
129
  # Embedding Model
130
  model_name = "nomic-ai/modernbert-embed-base"
 
119
  # Extract metadata
120
  metadata = extract_metadata_llm(st.session_state.pdf_path)
121
 
122
+ # Display extracted-metadata
123
  st.subheader("πŸ“„ Extracted Document Metadata")
124
+ st.subheader("πŸ“„ Extracted Document Metadata")
125
+ st.write(f"**Title:** {metadata.get('Title', 'Unknown')}")
126
+ st.write(f"**Author:** {metadata.get('Author', 'Unknown')}")
127
+ st.write(f"**Emails:** {metadata.get('Emails', 'No emails found')}")
128
+ st.write(f"**Affiliations:** {metadata.get('Affiliations', 'No affiliations found')}")
129
 
130
  # Embedding Model
131
  model_name = "nomic-ai/modernbert-embed-base"