Spaces:
Sleeping
Sleeping
Try gemini 2.0 flash
Browse files
agent.py
CHANGED
|
@@ -452,8 +452,8 @@ def build_graph(provider: str = 'google'):
|
|
| 452 |
|
| 453 |
# Pass the key when you initialize the model
|
| 454 |
llm_raw = ChatGoogleGenerativeAI(
|
| 455 |
-
model="gemini-2.
|
| 456 |
-
temperature=0,
|
| 457 |
google_api_key=google_api_key # <-- Add this line
|
| 458 |
)
|
| 459 |
else:
|
|
@@ -462,7 +462,7 @@ def build_graph(provider: str = 'google'):
|
|
| 462 |
repo_id = "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
|
| 463 |
task = 'text_generation',
|
| 464 |
do_sample = False,
|
| 465 |
-
temperature=0
|
| 466 |
)
|
| 467 |
)
|
| 468 |
except Exception as e:
|
|
|
|
| 452 |
|
| 453 |
# Pass the key when you initialize the model
|
| 454 |
llm_raw = ChatGoogleGenerativeAI(
|
| 455 |
+
model="gemini-2.0-flash",
|
| 456 |
+
temperature=0.9,
|
| 457 |
google_api_key=google_api_key # <-- Add this line
|
| 458 |
)
|
| 459 |
else:
|
|
|
|
| 462 |
repo_id = "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
|
| 463 |
task = 'text_generation',
|
| 464 |
do_sample = False,
|
| 465 |
+
temperature=0.9
|
| 466 |
)
|
| 467 |
)
|
| 468 |
except Exception as e:
|