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'): output = gr.Markdown() with gr.Row(): gr.HTML("""
CLARIFICATION: Note that when it comes to returning the correct inflection, different types of problems can arise. The library in charge of performing such conversions is based on the third-party dataset AGID, which it does not maintain.
""") btn_get.click( fn = execute.get, inputs = input_verb, outputs = [error, output], api_name="get" ) iface.launch( server_name = "0.0.0.0" )