thlinhares commited on
Commit
647a6cb
·
verified ·
1 Parent(s): 902a71a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -154,7 +154,7 @@ def analyze_contract(file, analysis_type: str):
154
  try:
155
  converter = DocumentConverter()
156
  result = converter.convert(file.name)
157
- document_text = result.document.export_to_text()
158
 
159
  if analysis_type == "Gemini":
160
  analysis_result = extract_legal_representatives_gemini(document_text)
 
154
  try:
155
  converter = DocumentConverter()
156
  result = converter.convert(file.name)
157
+ document_text = result.document.export_to_markdown()
158
 
159
  if analysis_type == "Gemini":
160
  analysis_result = extract_legal_representatives_gemini(document_text)