darthPanda commited on
Commit
7ffe108
·
1 Parent(s): a56c6fc

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -13,6 +13,14 @@ import gdown
13
  if os.path.exists('prediction') and os.path.isdir('prediction'):
14
  shutil.rmtree('prediction')
15
 
 
 
 
 
 
 
 
 
16
  # Check if the directory exists
17
  if not os.path.exists('model'):
18
  # If it does not exist, create it
 
13
  if os.path.exists('prediction') and os.path.isdir('prediction'):
14
  shutil.rmtree('prediction')
15
 
16
+ # Check if the directory exists
17
+ if not os.path.exists('temp.pdf_dir'):
18
+ # If it does not exist, create it
19
+ os.makedirs('temp.pdf_dir')
20
+ print('not_found')
21
+ else:
22
+ print('found')
23
+
24
  # Check if the directory exists
25
  if not os.path.exists('model'):
26
  # If it does not exist, create it