bstraehle commited on
Commit
9011293
·
verified ·
1 Parent(s): 63550ea

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +2 -2
crew.py CHANGED
@@ -59,8 +59,8 @@ def run_crew(question, file_path):
59
  Raises:
60
  RuntimeError: If processing fails"""
61
  try:
62
- client = genai.Client(api_key="GOOGLE_API_KEY")
63
-
64
  file = client.files.upload(file=file_path)
65
 
66
  response = client.models.generate_content(
 
59
  Raises:
60
  RuntimeError: If processing fails"""
61
  try:
62
+ client = genai.Client(api_key=os.environ["GOOGLE_API_KEY"])
63
+
64
  file = client.files.upload(file=file_path)
65
 
66
  response = client.models.generate_content(