kgauvin603 commited on
Commit
98b8fe1
·
verified ·
1 Parent(s): 7367161

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -122,7 +122,13 @@ retriever = vectorstore_persisted.as_retriever(
122
  drive.mount('/content/drive')
123
 
124
  #Copy the persisted database to your drive
125
- !cp -r collection_db /content/drive/MyDrive/
 
 
 
 
 
 
126
 
127
  # Get anyscale api key
128
  anyscale_api_key = userdata.get('dev-work')
 
122
  drive.mount('/content/drive')
123
 
124
  #Copy the persisted database to your drive
125
+ command = "!cp -r collection_db /content/drive/MyDrive/"
126
+ # Execute the command
127
+ try:
128
+ subprocess.run(command, check=True, shell=True)
129
+ except subprocess.CalledProcessError as e:
130
+ print(f"An error occurred: {e}")
131
+
132
 
133
  # Get anyscale api key
134
  anyscale_api_key = userdata.get('dev-work')