Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,15 +2,11 @@ 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"
|
| 9 |
-
|
| 10 |
-
# --- Agent Definition ---
|
| 11 |
def create_agent():
|
| 12 |
# We use Qwen2.5-Coder as the brain 🧠
|
| 13 |
-
model =
|
| 14 |
|
| 15 |
# We give it the search tool so it can find answers on the web 🔍
|
| 16 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import requests
|
| 4 |
import pandas as pd
|
| 5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool, LiteLLMModel
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
def create_agent():
|
| 8 |
# We use Qwen2.5-Coder as the brain 🧠
|
| 9 |
+
model = LiteLLMModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 10 |
|
| 11 |
# We give it the search tool so it can find answers on the web 🔍
|
| 12 |
search_tool = DuckDuckGoSearchTool()
|