import gradio as gr title = "CodeT5" description = "Gradio Demo for CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." article = "

CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation | Github Repo

" examples = [ ["def greet(user): print(f'hello !') "] ] gr.Interface.load("huggingface/Salesforce/codet5-base", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch()