Spaces:
Sleeping
Sleeping
Chris Alexiuk
commited on
Commit
•
8e93db5
1
Parent(s):
3b7d970
Update earnings_app.py
Browse files- earnings_app.py +4 -2
earnings_app.py
CHANGED
@@ -4,6 +4,7 @@ import asyncio
|
|
4 |
import os
|
5 |
import openai
|
6 |
import wandb
|
|
|
7 |
|
8 |
from typing import List, Optional
|
9 |
# from pydantic import BaseModel, Field
|
@@ -116,8 +117,9 @@ index = GPTVectorStoreIndex.from_documents([], service_context=service_context)
|
|
116 |
async def extract_information():
|
117 |
# Make sure to use a recent model that supports tools
|
118 |
|
119 |
-
|
120 |
-
|
|
|
121 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
122 |
|
123 |
def auto_retrieve_fn(
|
|
|
4 |
import os
|
5 |
import openai
|
6 |
import wandb
|
7 |
+
import glob
|
8 |
|
9 |
from typing import List, Optional
|
10 |
# from pydantic import BaseModel, Field
|
|
|
117 |
async def extract_information():
|
118 |
# Make sure to use a recent model that supports tools
|
119 |
|
120 |
+
print(glob.glob("./artifacts"))
|
121 |
+
storage_context = StorageContext.from_defaults(persist_dir="./artifacts/wiki-index:v0/")
|
122 |
+
|
123 |
index = load_index_from_storage(storage_context, service_context=service_context)
|
124 |
|
125 |
def auto_retrieve_fn(
|