Spaces:
Sleeping
Sleeping
File size: 265 Bytes
f154798 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from helper.graphs import local_agent
import sys
sys.dont_write_bytecode = True
def execute_agent(query):
output = local_agent.invoke(
{
"question": query
}
)
return output['generation']
print(execute_agent("What is AI")) |