SOTA-Plan / app.py
awacke1's picture
Update app.py
2219446
raw history blame
No virus
1.69 kB
import gradio as gr
context = "What should be documented in a care plan?\n"
context = context + "Regardless of what your preferences are, your care plan should include:\n"
context = context + "What your assessed care needs are./n"
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."
context = context + "Dimensions"
context = context + "1-Ontology of Plan"
context = context + "2-Problems as evidenced by Signs of Systems"
context = context + "3-Assessment of Needs"
context = context + "4-Questions"
context = context + "5-Goals"
context = context + "6-Knowledge-Behavior-Status Quality Measures"
context = context + "7-Intervention List of Options"
context = context + "8-Quality Measures"
context = context + "9-Pathways Available"
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()