Raffaele Terribile
commited on
Aggiunge il token di HuggingFace
Browse files
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=
|
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(),
|