Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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)
|