(code)
| 118 | self.generic_visit(node) |
| 119 | |
| 120 | def 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 | |
| 129 | def gradio_launch(model_path: str, MAX_TRY: int = 3): |
| 130 | with gr.Blocks() as demo: |
no test coverage detected