Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,7 @@ def extract_all_pages(file_path: str, progress_callback=None) -> str:
|
|
94 |
return f"PDF processing error: {str(e)}"
|
95 |
|
96 |
async def convert_file_to_json(file_path: str, file_type: str, progress_callback=None) -> str:
|
97 |
-
try
|
98 |
-
|
99 |
cache_key = f"{os.path.basename(file_path)}_{file_type}"
|
100 |
if cache_key in cache:
|
101 |
return cache[cache_key]
|
|
|
94 |
return f"PDF processing error: {str(e)}"
|
95 |
|
96 |
async def convert_file_to_json(file_path: str, file_type: str, progress_callback=None) -> str:
|
97 |
+
try:
|
|
|
98 |
cache_key = f"{os.path.basename(file_path)}_{file_type}"
|
99 |
if cache_key in cache:
|
100 |
return cache[cache_key]
|