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
ga.py
1
ga.py
@@ -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