Spaces:
Sleeping
Sleeping
Chris Alexiuk
commited on
Commit
•
7b1f36e
1
Parent(s):
b494adf
Update earnings_app.py
Browse files- earnings_app.py +1 -3
earnings_app.py
CHANGED
@@ -113,9 +113,7 @@ index = GPTVectorStoreIndex.from_documents([], service_context=service_context)
|
|
113 |
async def extract_information():
|
114 |
# Make sure to use a recent model that supports tools
|
115 |
|
116 |
-
storage_context =
|
117 |
-
artifact_url=artifact_dir + "/index_store.json"
|
118 |
-
)
|
119 |
|
120 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
121 |
|
|
|
113 |
async def extract_information():
|
114 |
# Make sure to use a recent model that supports tools
|
115 |
|
116 |
+
storage_context = StorageContext.from_defaults(persist_dir=artifact_dir)
|
|
|
|
|
117 |
|
118 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
119 |
|