__author__ = 'Taneem Jan, taneemishere.github.io'
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 = "
Front end Code Generation with Deep Neural Networks
" interface_description = """Input sketch image and select the framework and click on submit to generate
""" interface_article = """