Spaces:
Paused
Paused
Update crew.py
Browse files
crew.py
CHANGED
|
@@ -59,7 +59,7 @@ def run_crew(question, file_path):
|
|
| 59 |
Raises:
|
| 60 |
RuntimeError: If processing fails"""
|
| 61 |
try:
|
| 62 |
-
client = genai.Client(api_key=os.environ["
|
| 63 |
|
| 64 |
file = client.files.upload(file=file_path)
|
| 65 |
|
|
@@ -86,7 +86,7 @@ def run_crew(question, file_path):
|
|
| 86 |
Raises:
|
| 87 |
RuntimeError: If processing fails"""
|
| 88 |
try:
|
| 89 |
-
client = genai.Client(api_key=os.environ["
|
| 90 |
|
| 91 |
file = client.files.upload(file=file_path)
|
| 92 |
|
|
@@ -113,7 +113,7 @@ def run_crew(question, file_path):
|
|
| 113 |
Raises:
|
| 114 |
RuntimeError: If processing fails"""
|
| 115 |
try:
|
| 116 |
-
client = genai.Client(api_key=os.environ["
|
| 117 |
|
| 118 |
file = client.files.upload(file=file_path)
|
| 119 |
|
|
@@ -140,7 +140,7 @@ def run_crew(question, file_path):
|
|
| 140 |
Raises:
|
| 141 |
RuntimeError: If processing fails"""
|
| 142 |
try:
|
| 143 |
-
client = genai.Client(api_key=os.environ["
|
| 144 |
|
| 145 |
return client.models.generate_content(
|
| 146 |
model=YOUTUBE_MODEL,
|
|
@@ -167,7 +167,7 @@ def run_crew(question, file_path):
|
|
| 167 |
Raises:
|
| 168 |
RuntimeError: If processing fails"""
|
| 169 |
try:
|
| 170 |
-
client = genai.Client(api_key=os.environ["
|
| 171 |
|
| 172 |
file = client.files.upload(file=file_path)
|
| 173 |
|
|
|
|
| 59 |
Raises:
|
| 60 |
RuntimeError: If processing fails"""
|
| 61 |
try:
|
| 62 |
+
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 63 |
|
| 64 |
file = client.files.upload(file=file_path)
|
| 65 |
|
|
|
|
| 86 |
Raises:
|
| 87 |
RuntimeError: If processing fails"""
|
| 88 |
try:
|
| 89 |
+
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 90 |
|
| 91 |
file = client.files.upload(file=file_path)
|
| 92 |
|
|
|
|
| 113 |
Raises:
|
| 114 |
RuntimeError: If processing fails"""
|
| 115 |
try:
|
| 116 |
+
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 117 |
|
| 118 |
file = client.files.upload(file=file_path)
|
| 119 |
|
|
|
|
| 140 |
Raises:
|
| 141 |
RuntimeError: If processing fails"""
|
| 142 |
try:
|
| 143 |
+
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 144 |
|
| 145 |
return client.models.generate_content(
|
| 146 |
model=YOUTUBE_MODEL,
|
|
|
|
| 167 |
Raises:
|
| 168 |
RuntimeError: If processing fails"""
|
| 169 |
try:
|
| 170 |
+
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 171 |
|
| 172 |
file = client.files.upload(file=file_path)
|
| 173 |
|