Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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')
|