Ali2206 commited on
Commit
d888b8f
·
verified ·
1 Parent(s): fc9566f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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]