Michaeldavidstein commited on
Commit
54057d0
·
verified ·
1 Parent(s): 5268505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -41,7 +41,11 @@ def build_database():
41
  # Build the database when the app starts
42
  collection = build_database()
43
 
 
 
 
44
  # Instantiate the Anyscale client
 
45
  client = Anyscale(api_key=anyscale_api_key, model="meta-llama/Llama-2-70b-chat-hf")
46
 
47
  # Function to get relevant chunks
 
41
  # Build the database when the app starts
42
  collection = build_database()
43
 
44
+ # Access the Anyscale API key from environment variables
45
+ anyscale_api_key = os.getenv('anyscale_api_key')
46
+
47
  # Instantiate the Anyscale client
48
+ anyscale_api_key = userdata.get('anyscale_api_key')
49
  client = Anyscale(api_key=anyscale_api_key, model="meta-llama/Llama-2-70b-chat-hf")
50
 
51
  # Function to get relevant chunks