Update crew.py
Browse files
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(
|