import gradio as gr context = "What should be documented in a care plan?" context = context + "Regardless of what your preferences are, your care plan should include:" context = context + "What your assessed care needs are." context = context + "What type of support you should receive." context = context + "Your desired outcomes." context = context + "Who should provide care." context = context + "When care and support should be provided." context = context + "Records of care provided." context = context + "Your wishes and personal preferences." context = context + "The costs of the services." question = "What should be documented in a care plan?" gr.Interface.load( "huggingface/deepset/roberta-base-squad2", theme="default", css=".footer{display:none !important}", inputs=[gr.inputs.Textbox(lines=40, default=context, label="Context paragraph"), gr.inputs.Textbox(lines=10, default=question, label="Question")], outputs=[gr.outputs.Textbox(label="Answer"), gr.outputs.Textbox(label="Score")], title=None, description="Provide your own paragraph and ask any question about the text. How well does the model answer?").launch()