Spaces:
Runtime error
Runtime error
update cred
Browse files
app.py
CHANGED
@@ -49,7 +49,6 @@ def generate_apparatus(input_text, retriever_choice):
|
|
49 |
component_collection = weaviate_client.collections.get("Component")
|
50 |
|
51 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
52 |
-
# manager = CloudStorageManager(bucket_name)
|
53 |
|
54 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
55 |
|
@@ -140,7 +139,12 @@ def review_3d_model(uuid:str) -> None:
|
|
140 |
"""input the uuid of a 3d model"""
|
141 |
uuid = uuid.replace("-","")
|
142 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
143 |
-
|
|
|
|
|
|
|
|
|
|
|
144 |
xx = manager.get_file_by_uuid(uuid)
|
145 |
manager.download_file(
|
146 |
xx,
|
|
|
49 |
component_collection = weaviate_client.collections.get("Component")
|
50 |
|
51 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
|
|
52 |
|
53 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
54 |
|
|
|
139 |
"""input the uuid of a 3d model"""
|
140 |
uuid = uuid.replace("-","")
|
141 |
bucket_name = os.getenv('GOOGLE_BUCKET_NAME')
|
142 |
+
|
143 |
+
|
144 |
+
credentials_str = SERVICE_ACOUNT_STUFF = os.getenv('GOOGLE_APPLICATION_CREDENTIALS_JSON')
|
145 |
+
|
146 |
+
# Create an instance of CloudStorageManager
|
147 |
+
manager = CloudStorageManager(bucket_name, credentials_str)
|
148 |
xx = manager.get_file_by_uuid(uuid)
|
149 |
manager.download_file(
|
150 |
xx,
|