kgauvin603 commited on
Commit
8fc5ad4
·
verified ·
1 Parent(s): 08afbf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -48,10 +48,21 @@ if os.path.exists('collection_db'):
48
  !rm -rf dataset
49
 
50
  #Mount the Google Drive
51
- drive.mount('/content/drive')
52
 
53
  #Upload Dataset-10k.zip and unzip it dataset folder using -d option
54
- !unzip Dataset-10k.zip -d dataset
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  # Provide pdf_folder_location
57
  pdf_folder_location = "dataset"
 
48
  !rm -rf dataset
49
 
50
  #Mount the Google Drive
51
+ #drive.mount('/content/drive')
52
 
53
  #Upload Dataset-10k.zip and unzip it dataset folder using -d option
54
+ #!unzip Dataset-10k.zip -d dataset
55
+
56
+ import subprocess
57
+
58
+ # Command to unzip the file
59
+ command = "unzip Dataset-10k.zip -d dataset"
60
+
61
+ # Execute the command
62
+ try:
63
+ subprocess.run(command, check=True, shell=True)
64
+ except subprocess.CalledProcessError as e:
65
+ print(f"An error occurred: {e}")
66
 
67
  # Provide pdf_folder_location
68
  pdf_folder_location = "dataset"