Raffaele Terribile commited on
Commit
6e4fd66
·
unverified ·
1 Parent(s): 2101326

Aggiunge il token di HuggingFace

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -26,8 +26,13 @@ def invert_sentence(sentence: str) -> str:
26
  class FirstAgent:
27
  ### First Agent is the first attempt to develop an agent for the course. ###
28
  def __init__(self):
 
 
 
 
 
29
  self.agent = CodeAgent(
30
- model=InferenceClientModel(),
31
  tools=[
32
  # DuckDuckGoSearchTool(),
33
  # GoogleSearchTool(),
 
26
  class FirstAgent:
27
  ### First Agent is the first attempt to develop an agent for the course. ###
28
  def __init__(self):
29
+ # Usa un modello Hugging Face gratuito invece di Nebius
30
+ model = InferenceClientModel(
31
+ token=os.getenv("HF_TOKEN") # Token HF se necessario
32
+ )
33
+
34
  self.agent = CodeAgent(
35
+ model=model,
36
  tools=[
37
  # DuckDuckGoSearchTool(),
38
  # GoogleSearchTool(),