class Tree(Resource): def __init__(self): self.builder = SyntaxTreeBuilder() def get(self, sentence): filename = self.builder.build(sentence) #return filename return send_file(filename, 'image/png')
def __init__(self): self.builder = SyntaxTreeBuilder()