__author__ = 'Img2Markup' import gradio as gr import main_program # our model's i/o method that take image from gradio interface's inputs.Image() def model_interface(image): return main_model(image) # main method that call the main_program where code is generated and then compiled def main_model(input_image): result = main_program.main_method(input_image) return result interface_title = "

HTML Code Generation from Images with Deep Neural Networks

" interface_description = """

Writing code in a programming language for a designed mockup or a graphical user interface created by designers and UI engineers, is done mostly by developers to build and develop custom websites and software. The development work is not approachable by those unfamiliar with programming, to drive these personas capable of designing and developing the code bases and website structures we come up with an automated system. In this work, we showed and proposed that methods of deep learning and computer vision can be grasped to train a model that will automatically generate HTML code from a single input mockup image and try to build an end-to-end automated system with accuracy more than previous works for developing the structures of web pages.

""" interface_article = """

Limitations of Model

Certain limitations are there in the model some of them are listed below



Developed by Nazeer Abdul Razzack Kiran Manish
""" interface_examples = ['examples/example-1.png', 'examples/example-2.png', 'examples/example-3.png'] # a gradio interface to convert a image to HTML Code interface = gr.Interface( model_interface, inputs='image', outputs='text', allow_flagging="manual", title=interface_title, description=interface_description, article=interface_article, examples=interface_examples ) interface.launch(share=False)