rlpeter70 commited on
Commit
c16b740
1 Parent(s): 24b23aa

Update earnings_app.py

Browse files
Files changed (1) hide show
  1. earnings_app.py +5 -0
earnings_app.py CHANGED
@@ -3,6 +3,7 @@
3
  import asyncio
4
  import os
5
  import openai
 
6
 
7
  from typing import List, Optional
8
  # from pydantic import BaseModel, Field
@@ -34,6 +35,10 @@ from llama_index import GPTVectorStoreIndex
34
  set_global_handler("wandb", run_args={"project": "final-project-v1"})
35
  wandb_callback = llama_index.global_handler
36
 
 
 
 
 
37
  from dotenv import load_dotenv
38
  load_dotenv()
39
 
 
3
  import asyncio
4
  import os
5
  import openai
6
+ import wandb
7
 
8
  from typing import List, Optional
9
  # from pydantic import BaseModel, Field
 
35
  set_global_handler("wandb", run_args={"project": "final-project-v1"})
36
  wandb_callback = llama_index.global_handler
37
 
38
+ run = wandb.init()
39
+ artifact = run.use_artifact('rlpeter70/final-project-v1/earnings-index:v0', type='storage_context')
40
+ artifact_dir = artifact.download()
41
+
42
  from dotenv import load_dotenv
43
  load_dotenv()
44