Interrupt and Gradio Integration (HIL) #3145
Unanswered
avfranco-br
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, I am stuck on this for days, couldn't find any similar example and any help would be really appreciated. I've updated this comment with a minimal reproducible code. Many thanks in advance. app-ea4ll-human-in-the-loop.ipynb`
app_ea4all_hiit.py`
` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Has anyone successfully override the langgraph.types.interrupt with a custom_async_interrupt to get a user input using Gradio? The integration with Gradio seems to work fine, user input captured OK, but when trying to resume the graph getting the error
Error resuming graph: 'Button' object has no attribute '_id' - During task with name 'ask_human'
. ask_human is the node triggering the custom interrupt function.This is the code generating the error:
`async def resume_graph(self, user_input):
"""
Async method to resume the graph with user input
"""
if not self.graph or not self.thread_config:
print("Graph or thread configuration not set")
return None
It seems to be something related to correctly managing asynchronous but couldn't find the error.
Thanks in advance for any input, working example.
Regards,
Alexandre
Beta Was this translation helpful? Give feedback.
All reactions