File size: 1,030 Bytes
24426b6 b50cb56 24426b6 b50cb56 24426b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
context = "What should be documented in a care plan?
Regardless of what your preferences are, your care plan should include:
What your assessed care needs are.
What type of support you should receive.
Your desired outcomes.
Who should provide care.
When care and support should be provided.
Records of care provided.
Your wishes and personal preferences.
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() |