Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -407,7 +407,7 @@ with gr.Blocks() as demo:
|
|
| 407 |
if not api_key:
|
| 408 |
return "Error: GEMINI_API_KEY environment variable not found"
|
| 409 |
|
| 410 |
-
model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-lite", api_key=AIzaSyAhmwogxZFBtt7_OUsKQGNeOYF7ced39bM)
|
| 411 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 412 |
answer = agent(question)
|
| 413 |
return answer
|
|
|
|
| 407 |
if not api_key:
|
| 408 |
return "Error: GEMINI_API_KEY environment variable not found"
|
| 409 |
|
| 410 |
+
model = LiteLLMModel(model_id="gemini/gemini-2.0-flash-lite", api_key="AIzaSyAhmwogxZFBtt7_OUsKQGNeOYF7ced39bM")
|
| 411 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 412 |
answer = agent(question)
|
| 413 |
return answer
|