SOTA-Plan / app.py
awacke1's picture
Update app.py
b50cb56
raw
history blame
1.03 kB
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()