Spaces:
Paused
Paused
apple muncy commited on
Commit Β·
ff70c7a
1
Parent(s): 781c3e8
printing tools found
Browse filesSigned-off-by: apple muncy <apple@dell-deb-12-5.local>
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)
|