fix: add yield in do_ask_user to prevent empty code block rendering as undefined in some Streamlit versions
This commit is contained in:
1 parent
f0ce7215ff
commit
afb0b57a06
1 file changed
+1
@@ -281,6 +281,7 @@ class GenericAgentHandler(BaseHandler):
|
|||||||
question = args.get("question", "请提供输入:")
|
question = args.get("question", "请提供输入:")
|
||||||
candidates = args.get("candidates", [])
|
candidates = args.get("candidates", [])
|
||||||
result = ask_user(question, candidates)
|
result = ask_user(question, candidates)
|
||||||
|
yield f"Waiting for your answer ...\n"
|
||||||
return StepOutcome(result, next_prompt="", should_exit=True)
|
return StepOutcome(result, next_prompt="", should_exit=True)
|
||||||
|
|
||||||
def do_web_scan(self, args, response):
|
def do_web_scan(self, args, response):
|
||||||
|
|||||||
Reference in new issue
Block a user