apple muncy commited on
Commit
ff70c7a
Β·
1 Parent(s): 781c3e8

printing tools found

Browse files

Signed-off-by: apple muncy <[email protected]>

Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -116,8 +116,13 @@ async def get_agent():
116
  print("βœ… Agent instance created successfully")
117
  print("πŸ”§ Loading tools...")
118
  await agent_instance.load_tools()
119
- print("βœ… Tools loaded successfully")
120
  logger.info("Tools loaded successfully")
 
 
 
 
 
 
121
  except Exception as e:
122
  print(f"❌ Error creating/loading agent: {str(e)}")
123
  agent_instance = None
@@ -527,5 +532,4 @@ if __name__ == "__main__":
527
  print("πŸš€ Starting HF Tagging Bot...")
528
  print("πŸ“Š Dashboard: http://localhost:7860/gradio")
529
  print("πŸ”— Webhook: http://localhost:7860/webhook")
530
- print('\e[31mThis is a test\e[0m')
531
  uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
 
116
  print("βœ… Agent instance created successfully")
117
  print("πŸ”§ Loading tools...")
118
  await agent_instance.load_tools()
 
119
  logger.info("Tools loaded successfully")
120
+
121
+ print(f"[bold blue]Agent loaded with {len(agent.available_tools)} tools:[/bold blue]")
122
+ for t in agent.available_tools:
123
+ print(f"[blue] β€’ {t.function.name}[/blue]")
124
+
125
+
126
  except Exception as e:
127
  print(f"❌ Error creating/loading agent: {str(e)}")
128
  agent_instance = None
 
532
  print("πŸš€ Starting HF Tagging Bot...")
533
  print("πŸ“Š Dashboard: http://localhost:7860/gradio")
534
  print("πŸ”— Webhook: http://localhost:7860/webhook")
 
535
  uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)