Hmd6919 commited on
Commit
975e7b7
·
verified ·
1 Parent(s): 7463730

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
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, ApiModel #
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 = ApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct") #
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()