huggingwhale.ai / app.py
Schmitz005's picture
Update app.py
13c220c verified
raw
history blame contribute delete
531 Bytes
from whalecore import parser, agents
print("πŸ‹ Welcome to HuggingWhale.AI")
print("Drop your chaos here and we'll pretend to make sense of it...\n")
# Fake file parsing (replace with actual PDF path)
doc = parser.parse_file("sample.pdf")
chunks = parser.chunk_and_embed(doc)
# Load your agents
agent_cfgs = agents.load_agents("config.yaml")
# Simulate agent convo
responses = agents.run_agents_on_text(agent_cfgs, doc)
# Output agent responses
for name, reply in responses.items():
print(f"\nπŸ€– {name} says:\n{reply}")