Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import os
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool,
|
| 6 |
|
| 7 |
# --- Constants ---
|
| 8 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
@@ -13,7 +13,7 @@ class BasicAgent:
|
|
| 13 |
print("Inicializando o Agente do GAIA...")
|
| 14 |
|
| 15 |
# Define o modelo
|
| 16 |
-
self.model =
|
| 17 |
|
| 18 |
# Define as ferramentas
|
| 19 |
self.tools = [DuckDuckGoSearchTool()]
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 6 |
|
| 7 |
# --- Constants ---
|
| 8 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
|
| 13 |
print("Inicializando o Agente do GAIA...")
|
| 14 |
|
| 15 |
# Define o modelo
|
| 16 |
+
self.model = LiteLLMModel(model_id="huggingface/Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 17 |
|
| 18 |
# Define as ferramentas
|
| 19 |
self.tools = [DuckDuckGoSearchTool()]
|