awacke1 commited on
Commit
b4eaaae
·
1 Parent(s): 4cbe9fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -20
app.py CHANGED
@@ -36,30 +36,28 @@ def MatchOMS(name):
36
 
37
 
38
  with gr.Blocks() as demo:
39
- name = gr.Textbox(label="Enter a term or word to match and find LOINC, SNOMED and OMS clinical terminologies.")
40
-
41
- output1 = gr.DataFrame(label="LOINC Terminology")
42
- output2 = gr.DataFrame(label="LOINC Assessment Panels")
43
- output3 = gr.DataFrame(label="SNOMED Terminology")
44
- output4 = gr.DataFrame(label="SNOMED and OMS Terminology")
 
 
 
45
 
46
- #output1 = gr.TextArea(label="Output Match LOINC", max_lines=10, interactive=True, )
47
- #output2 = gr.TextArea(label="Output Match LOINC Panels and Forms", max_lines=10, interactive=True,)
48
- #output3 = gr.TextArea(label="Output Match SNOMED", max_lines=10, interactive=True,)
49
- #output4 = gr.TextArea(label="Output Match SNOMED", max_lines=10, interactive=True,)
 
 
 
 
50
 
51
- button1 = gr.Button("Match LOINC Clinical Terminology")
52
  button1.click(fn=MatchLOINC, inputs=name, outputs=output1)
53
-
54
- button2 = gr.Button("Match LOINC Panels and Forms")
55
  button2.click(fn=MatchLOINCPanelsandForms, inputs=name, outputs=output2)
56
-
57
- button3 = gr.Button("Match SNOMED Clinical Terminology")
58
  button3.click(fn=MatchSNOMED, inputs=name, outputs=output3)
59
-
60
- button3 = gr.Button("Match SNOMED and OMS Clinical Terminology")
61
- button3.click(fn=MatchOMS, inputs=name, outputs=output4)
62
-
63
-
64
 
65
  demo.launch(debug=True)
 
36
 
37
 
38
  with gr.Blocks() as demo:
39
+ with gr.Row():
40
+ name = gr.Textbox(label="Enter a term or word to match and find LOINC, SNOMED and OMS clinical terminologies.")
41
+
42
+
43
+ with gr.Row():
44
+ button1 = gr.Button("LOINC Terminology")
45
+ button2 = gr.Button("LOINC Panels and Forms")
46
+ button3 = gr.Button("SNOMED Clinical Terminology")
47
+ button4 = gr.Button("SNOMED and OMS Clinical Terminology")
48
 
49
+ with gr.Row():
50
+ output1 = gr.DataFrame(label="LOINC Terminology")
51
+ with gr.Row():
52
+ output2 = gr.DataFrame(label="LOINC Assessment Panels")
53
+ with gr.Row():
54
+ output3 = gr.DataFrame(label="SNOMED Terminology")
55
+ with gr.Row():
56
+ output4 = gr.DataFrame(label="SNOMED and OMS Terminology")
57
 
 
58
  button1.click(fn=MatchLOINC, inputs=name, outputs=output1)
 
 
59
  button2.click(fn=MatchLOINCPanelsandForms, inputs=name, outputs=output2)
 
 
60
  button3.click(fn=MatchSNOMED, inputs=name, outputs=output3)
61
+ button4.click(fn=MatchOMS, inputs=name, outputs=output4)
 
 
 
 
62
 
63
  demo.launch(debug=True)