theob699 commited on
Commit
85779f5
·
verified ·
1 Parent(s): 3a5bd3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,6 @@
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
 
 
2
  import datetime
3
  import requests
4
  import pytz
@@ -52,6 +54,8 @@ final_answer = FinalAnswerTool()
52
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
53
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
54
 
 
 
55
  model = HfApiModel(
56
  max_tokens=2096,
57
  temperature=0.5,
 
1
  from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
+ from smol_dev.llms import LiteLLMModel
3
+
4
  import datetime
5
  import requests
6
  import pytz
 
54
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
55
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
56
 
57
+ # Ensure you have your Google Gemini API key set as an environment variable
58
+ os.environ["GOOGLE_API_KEY"] = "YOUR_GEMINI_API_KEY"
59
  model = HfApiModel(
60
  max_tokens=2096,
61
  temperature=0.5,