Spaces:
Sleeping
Sleeping
Download utils/run_agent.py from Samagra07/LinkedIn-Post-Generator: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/spaces/Samagra07/LinkedIn-Post-Generator/resolve/main/utils/run_agent.py
- Command line
-
hf download hf://spaces/Samagra07/LinkedIn-Post-Generator/utils/run_agent.py
-
curl -L -o run_agent.py https://huggingface.co/spaces/Samagra07/LinkedIn-Post-Generator/resolve/main/utils/run_agent.py
265 Bytes
| 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")) |