anmolsahai commited on
Commit
bad01fb
1 Parent(s): 358d5bb
Files changed (3) hide show
  1. app.py +1 -2
  2. langchain_pipeline.py +0 -0
  3. requirements.txt +20 -10
app.py CHANGED
@@ -7,7 +7,6 @@ import tempfile
7
  from docx.shared import RGBColor
8
  import re
9
  import subprocess
10
- import os
11
 
12
  def pdf_to_text_with_layout(pdf_file):
13
  doc = fitz.open(stream=pdf_file.read(), filetype="pdf")
@@ -113,4 +112,4 @@ if uploaded_file is not None:
113
  st.success("Documents created successfully!")
114
 
115
  except Exception as e:
116
- st.exception(e)
 
7
  from docx.shared import RGBColor
8
  import re
9
  import subprocess
 
10
 
11
  def pdf_to_text_with_layout(pdf_file):
12
  doc = fitz.open(stream=pdf_file.read(), filetype="pdf")
 
112
  st.success("Documents created successfully!")
113
 
114
  except Exception as e:
115
+ st.exception(e)
langchain_pipeline.py CHANGED
The diff for this file is too large to render. See raw diff
 
requirements.txt CHANGED
@@ -1,13 +1,23 @@
1
  streamlit
2
- PyMuPDF
 
 
 
 
 
 
 
 
 
 
3
  python-docx
4
- google-auth
5
- google-auth-oauthlib
6
- google-auth-httplib2
7
- requests
8
- langchain-core
9
- langchain-astradb
10
- langchain-openai
11
- langchain-anthropic
12
- langchain-google-genai
13
  docxcompose
 
1
  streamlit
2
+ pdfminer.six
3
+ langchain
4
+ langchain_community
5
+ langchain_astradb
6
+ langchain_core
7
+ langchain_openai
8
+ langchain_anthropic
9
+ langchain_google_genai==1.0.5
10
+ google_generativeai
11
+ pdf2docx
12
+ pymupdf
13
  python-docx
14
+ streamlit
15
+ pdfplumber
16
+ python-docx
17
+ redlines
18
+ langchain_astradb
19
+ langchain_core
20
+ langchain_openai
21
+ langchain_anthropic
22
+ langchain_google_genai
23
  docxcompose