Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool,
|
| 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 =
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 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 |
|