Voiid-m commited on
Commit
8cf6c08
·
verified ·
1 Parent(s): cfbddd7

Change model Class

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent, InferenceClientModel, load_tool, tool
2
  import datetime
3
  import pytz
4
  import yaml
@@ -51,7 +51,7 @@ image_generation_tool = load_tool(
51
 
52
  # ==== Modèle LLM (Qwen2.5 Coder 32B Instruct) ====
53
 
54
- model = InferenceClientModel(
55
  max_tokens=2096,
56
  temperature=0.5,
57
  model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
 
1
+ from smolagents import CodeAgent, HfApiModel, load_tool, tool
2
  import datetime
3
  import pytz
4
  import yaml
 
51
 
52
  # ==== Modèle LLM (Qwen2.5 Coder 32B Instruct) ====
53
 
54
+ model = HfApiModel(
55
  max_tokens=2096,
56
  temperature=0.5,
57
  model_id="Qwen/Qwen2.5-Coder-32B-Instruct",