Idealcom commited on
Commit
93b1381
·
verified ·
1 Parent(s): 590ac49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel, load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -35,11 +35,11 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
- model = InferenceClientModel(
39
- max_tokens=2096,
40
- temperature=0.5,
41
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
42
- custom_role_conversions=None,
43
  )
44
 
45
 
 
1
+ from smolagents import CodeAgent, DuckDuckGoSearchTool,LiteLLMModel, load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
 
35
 
36
 
37
  final_answer = FinalAnswerTool()
38
+ model = LiteLLMModel(
39
+ model_id="ollama_chat/qwen2:7b", # Utilise le modèle que vous avez téléchargé
40
+ api_base="http://127.0.0.1:11434", # Serveur Ollama local
41
+ num_ctx=8192,
42
+ temperature=0.5, # Vous pouvez conserver vos paramètres existants
43
  )
44
 
45