MCPcopy Create free account
hub / github.com/OpenCodeInterpreter/OpenCodeInterpreter / has_input_function_calls

Function has_input_function_calls

demo/chatbot.py:120–127  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

118 self.generic_visit(node)
119
120def has_input_function_calls(code):
121 try:
122 tree = ast.parse(code)
123 except SyntaxError:
124 return False
125 visitor = InputFunctionVisitor()
126 visitor.visit(tree)
127 return visitor.found_input
128
129def gradio_launch(model_path: str, MAX_TRY: int = 3):
130 with gr.Blocks() as demo:

Callers 1

botFunction · 0.85

Calls 1

Tested by

no test coverage detected