import gradio as gr context = "This procedure is used to guide technician to replace equipment EQ1. The procedure is valid in normal operation. There is different procedure for emergency situations. The replacement of EQ1 may be done by SE, MT, or MS." question = "Who can replace the equipment?" gr.Interface.load( "huggingface/deepset/roberta-base-squad2", theme="default", inputs=[gr.inputs.Textbox(lines=7, default=context, label="Context Paragraph"), gr.inputs.Textbox(lines=2, default=question, label="Question")], outputs=[gr.outputs.Textbox(label="Answer")], title=None).launch()