shripadbhat commited on
Commit
67b3ac5
·
1 Parent(s): be683a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,14 +7,14 @@ def fetch_answer(question, context ):
7
  return qa_model(question = question, context = context)['answer']
8
 
9
  demo = gr.Interface(
10
- title='Question Answering System from Clinical Notes',
11
- description="""Physicians frequently seek answers to questions from a patient’s EHR to support clinical decision-making.​ It is not too hard to imagine a future where a physician interacts with an EHR system and asks it complex questions and expects precise answers with adequate context from a patient’s past clinical notes. ​Central to such a world is a medical question answering system that processes natural language questions asked by physicians and finds answers to the questions from all sources in a patient’s record.""",
12
  fn=fetch_answer,
13
  #take input as real time audio and use OPENAPI whisper for S2T
14
  #clinical note upload as file (.This is an example of simple text. or doc/docx file)
15
  inputs=[gr.Textbox(lines=2, label='Question', show_label=True, placeholder="What is age of patient ?"),
16
  gr.Textbox(lines=10, label='Clinical Note', show_label=True, placeholder="The patient is a 71 year old male...")],
17
  outputs="text",
18
- examples='.'
 
 
19
  )
20
  demo.launch()
 
7
  return qa_model(question = question, context = context)['answer']
8
 
9
  demo = gr.Interface(
 
 
10
  fn=fetch_answer,
11
  #take input as real time audio and use OPENAPI whisper for S2T
12
  #clinical note upload as file (.This is an example of simple text. or doc/docx file)
13
  inputs=[gr.Textbox(lines=2, label='Question', show_label=True, placeholder="What is age of patient ?"),
14
  gr.Textbox(lines=10, label='Clinical Note', show_label=True, placeholder="The patient is a 71 year old male...")],
15
  outputs="text",
16
+ examples='.',
17
+ title='Question Answering System from Clinical Notes for Physicians',
18
+ description="""Physicians frequently seek answers to questions from a patient’s EHR to support clinical decision-making.​ It is not too hard to imagine a future where a physician interacts with an EHR system and asks it complex questions and expects precise answers with adequate context from a patient’s past clinical notes. ​Central to such a world is a medical question answering system that processes natural language questions asked by physicians and finds answers to the questions from all sources in a patient’s record."""
19
  )
20
  demo.launch()