import gradio as gr from modules.m_parser import Parser execute = Parser() iface = gr.Blocks(css='css/style.css') with iface: gr.HTML("
πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ Verb Tense Converter
") with gr.Row(): input_verb = gr.Textbox( label = "1. Enter a verb", max_lines=1, placeholder = "Enter here a single verb in any tense...", ) btn_get = gr.Button( value = "2. Click here to convert!" ) with gr.Row(): error = gr.HTML() with gr.Row(variant='panel'): with gr.Column(variant='panel'): out_infinitive = gr.Textbox( label="Infinitive", max_lines=1, placeholder="The verb in the 'infinitive' will be shown here..." ) with gr.Column(variant='panel'): out_simple_past = gr.Textbox( label="Simple Past", max_lines=1, placeholder="The verb in the 'past' will be shown here..." ) with gr.Column(variant='panel'): out_past_participle = gr.Textbox( label="Past Participle", max_lines=1, placeholder="The verb in the 'participle' will be shown here..." ) btn_get.click( fn = execute.get_verbs, inputs = input_verb, outputs = [error, out_infinitive, out_simple_past, out_past_participle], api_name="get" ) iface.launch( server_name = "0.0.0.0" )