ressay1973 commited on
Commit
b8a0182
·
verified ·
1 Parent(s): 1570b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -48,9 +48,9 @@ def assign_alert(alert_message: str) -> str:
48
  final_answer = FinalAnswerTool()
49
 
50
  model = HfApiModel(
51
- max_tokens=2096,
52
  temperature=0.5,
53
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
54
  custom_role_conversions=None,
55
  )
56
 
@@ -59,10 +59,10 @@ with open("prompts.yaml", 'r') as stream:
59
 
60
  agent = CodeAgent(
61
  model=model,
62
- tools=[final_answer, convert_time, assign_alert],
63
- max_steps=6,
64
  verbosity_level=1,
65
- grammar=None,
66
  planning_interval=None,
67
  name="Monitoring Assistant",
68
  description="An agent that helps with alert assignment, time conversion, monitoring tasks.",
 
48
  final_answer = FinalAnswerTool()
49
 
50
  model = HfApiModel(
51
+ max_tokens=1024,
52
  temperature=0.5,
53
+ model_id='tiiuae/falcon-7b-instruct', # Alternativa recomendada
54
  custom_role_conversions=None,
55
  )
56
 
 
59
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[],
63
+ max_steps=3,
64
  verbosity_level=1,
65
+ name="Test Agent",
66
  planning_interval=None,
67
  name="Monitoring Assistant",
68
  description="An agent that helps with alert assignment, time conversion, monitoring tasks.",