example and first message change
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def set_model(history, model):
|
|
60 |
|
61 |
def get_first_message(history):
|
62 |
history = [(None,
|
63 |
-
'Hi!! I AM GRADY!! I am a
|
64 |
return history
|
65 |
|
66 |
|
@@ -83,6 +83,14 @@ with gr.Blocks() as demo:
|
|
83 |
|
84 |
with gr.Column(scale=0.25):
|
85 |
audio = gr.Audio(source="microphone", type="filepath").style(container=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
txt.submit(add_text, [chatbot, txt, radio], [chatbot, txt], postprocess=False).then(
|
88 |
bot, chatbot, chatbot
|
@@ -94,10 +102,12 @@ with gr.Blocks() as demo:
|
|
94 |
|
95 |
radio.change(fn=set_model, inputs=[chatbot, radio], outputs=[chatbot]).then(bot, chatbot, chatbot)
|
96 |
|
97 |
-
|
98 |
|
99 |
set_model(chatbot, radio.value)
|
100 |
|
|
|
|
|
101 |
if __name__ == "__main__":
|
102 |
demo.queue()
|
103 |
demo.queue(concurrency_count=5)
|
|
|
60 |
|
61 |
def get_first_message(history):
|
62 |
history = [(None,
|
63 |
+
'Hi!! I AM GRADY!! I am a grading assistant to help you grade assignments based on a rubric!! Today, I will be grading <a href="https://hbsp.harvard.edu/product/908D01-PDF-ENG"> Paediatric Orthopaedic Quiz')]
|
64 |
return history
|
65 |
|
66 |
|
|
|
83 |
|
84 |
with gr.Column(scale=0.25):
|
85 |
audio = gr.Audio(source="microphone", type="filepath").style(container=False)
|
86 |
+
with gr.Row():
|
87 |
+
gr.Examples(examples=["""11: Currently the process is not very efficient as each patient goes through the same steps at the front desk and the radiology department although the sub-activities and processes are different. Also, the staff is doing multiple activities based on patient requirements.
|
88 |
+
|
89 |
+
One solution is to have a streamlined and differentiated process for each sub-type with dedicated staff. For example, at the front desk, all new patient cases can be handled by one nurse while all follow-up cases by a second nurse.
|
90 |
+
|
91 |
+
Similarly, in the radiology department, all upper extremity cases can be handled by 2 technicians while lower extremity cases by the other 2 technicians with dedicated X-ray machines. The 3rd nurse will be responsible for handling the hand-off of X-rays and inserting them into the patient's files.
|
92 |
+
|
93 |
+
By having staff do a single type of task on a particular day, and by having the patients go through differentiated workflows, it should be possible to improve overall efficiency. """], inputs=[txt], label="Answers")
|
94 |
|
95 |
txt.submit(add_text, [chatbot, txt, radio], [chatbot, txt], postprocess=False).then(
|
96 |
bot, chatbot, chatbot
|
|
|
102 |
|
103 |
radio.change(fn=set_model, inputs=[chatbot, radio], outputs=[chatbot]).then(bot, chatbot, chatbot)
|
104 |
|
105 |
+
audio.change(lambda:None, None, audio)
|
106 |
|
107 |
set_model(chatbot, radio.value)
|
108 |
|
109 |
+
|
110 |
+
|
111 |
if __name__ == "__main__":
|
112 |
demo.queue()
|
113 |
demo.queue(concurrency_count=5)
|