Lulube commited on
Commit
9e6e3e3
·
verified ·
1 Parent(s): 39aa3af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -3,7 +3,6 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
6
- from smolagents import CodeAgent, LiteLLMModel, DuckDuckGoSearchTool, VisitWebpageTool
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
@@ -11,7 +10,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
11
 
12
  # --- Basic Agent Definition ---
13
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
14
- from smolagents import CodeAgent, LiteLLMModel, DuckDuckGoSearchTool, VisitWebpageTool, PythonCodeTool, SpeechToTextTool, ImageCaptioningTool
15
 
16
  class BasicAgent():
17
  def __init__(self):
@@ -29,9 +28,9 @@ class BasicAgent():
29
  tools = [
30
  DuckDuckGoSearchTool(), # Recherche web (Wikipedia)
31
  VisitWebpageTool(), # Visite de pages web
32
- PythonCodeTool(), # Calculs, Excel, traitement de données
33
  SpeechToTextTool(), # Speech to text
34
- ImageCaptioningTool(), # Reconnaissance d'image
35
  ]
36
 
37
  # Créer l'agent Alfred avec les outils
 
3
  import requests
4
  import inspect
5
  import pandas as pd
 
6
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
 
10
 
11
  # --- Basic Agent Definition ---
12
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
13
+ from smolagents import CodeAgent, LiteLLMModel, DuckDuckGoSearchTool, VisitWebpageTool, PythonInterpreterTool, SpeechToTextTool #, ImageCaptioningTool
14
 
15
  class BasicAgent():
16
  def __init__(self):
 
28
  tools = [
29
  DuckDuckGoSearchTool(), # Recherche web (Wikipedia)
30
  VisitWebpageTool(), # Visite de pages web
31
+ PythonInterpreterTool(), # Calculs, Excel, traitement de données
32
  SpeechToTextTool(), # Speech to text
33
+ #ImageCaptioningTool(), # Reconnaissance d'image
34
  ]
35
 
36
  # Créer l'agent Alfred avec les outils