awacke1 commited on
Commit
f4742fd
1 Parent(s): 6c7f3a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -14,7 +14,7 @@ import json
14
  import numpy as np
15
  import gradio as gr
16
 
17
- CHOICES = ["foo", "bar", "baz"]
18
  JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu": 0.55,"batters":{"batter":[{ "id": "1001", "type": "Regular" },{ "id": "1002", "type": "Chocolate" },{ "id": "1003", "type": "Blueberry" },{ "id": "1004", "type": "Devil's Food" }]},"topping":[{ "id": "5001", "type": "None" },{ "id": "5002", "type": "Glazed" },{ "id": "5005", "type": "Sugar" },{ "id": "5007", "type": "Powdered Sugar" },{ "id": "5006", "type": "Chocolate with Sprinkles" },{ "id": "5003", "type": "Chocolate" },{ "id": "5004", "type": "Maple" }]}]}}"""
19
 
20
 
@@ -67,9 +67,9 @@ demo = gr.Interface(
67
  #gr.Number(label="Number", value=42),
68
  #gr.Slider(10, 20, value=15, label="Slider: 10 - 20"),
69
  #gr.Slider(maximum=20, step=0.04, label="Slider: step @ 0.04"),
70
- gr.Checkbox(label="Checkbox"),
71
- gr.CheckboxGroup(label="CheckboxGroup", choices=CHOICES, value=CHOICES[0:2]),
72
- gr.Radio(label="Radio", choices=CHOICES, value=CHOICES[2]),
73
  #gr.Dropdown(label="Dropdown", choices=CHOICES),
74
  #gr.Image(label="Image"),
75
  #gr.Image(label="Image w/ Cropper", tool="select"),
@@ -79,7 +79,7 @@ demo = gr.Interface(
79
  #gr.Audio(label="Audio"),
80
  #gr.Audio(label="Microphone", source="microphone"),
81
  gr.File(label="File"),
82
- gr.Dataframe(label="Dataframe", headers=["Name", "Age", "Gender"]),
83
  gr.Timeseries(x="time", y=["price", "value"], colors=["pink", "purple"]),
84
  ],
85
  outputs=[
@@ -105,8 +105,8 @@ demo = gr.Interface(
105
  #12,
106
  #4,
107
  True,
108
- ["foo", "baz"],
109
- "baz",
110
  #"bar",
111
  #os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
112
  #os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
 
14
  import numpy as np
15
  import gradio as gr
16
 
17
+ CHOICES = ["SNOMED", "LOINC", "CQM"]
18
  JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu": 0.55,"batters":{"batter":[{ "id": "1001", "type": "Regular" },{ "id": "1002", "type": "Chocolate" },{ "id": "1003", "type": "Blueberry" },{ "id": "1004", "type": "Devil's Food" }]},"topping":[{ "id": "5001", "type": "None" },{ "id": "5002", "type": "Glazed" },{ "id": "5005", "type": "Sugar" },{ "id": "5007", "type": "Powdered Sugar" },{ "id": "5006", "type": "Chocolate with Sprinkles" },{ "id": "5003", "type": "Chocolate" },{ "id": "5004", "type": "Maple" }]}]}}"""
19
 
20
 
 
67
  #gr.Number(label="Number", value=42),
68
  #gr.Slider(10, 20, value=15, label="Slider: 10 - 20"),
69
  #gr.Slider(maximum=20, step=0.04, label="Slider: step @ 0.04"),
70
+ gr.Checkbox(label="Check for NER Match on Submit"),
71
+ gr.CheckboxGroup(label="Clinical Terminology to Check", choices=CHOICES, value=CHOICES[0:2]),
72
+ gr.Radio(label="Preferred Terminology Output", choices=CHOICES, value=CHOICES[2]),
73
  #gr.Dropdown(label="Dropdown", choices=CHOICES),
74
  #gr.Image(label="Image"),
75
  #gr.Image(label="Image w/ Cropper", tool="select"),
 
79
  #gr.Audio(label="Audio"),
80
  #gr.Audio(label="Microphone", source="microphone"),
81
  gr.File(label="File"),
82
+ gr.Dataframe(label="Filters", headers=["Name", "Age", "Gender"]),
83
  gr.Timeseries(x="time", y=["price", "value"], colors=["pink", "purple"]),
84
  ],
85
  outputs=[
 
105
  #12,
106
  #4,
107
  True,
108
+ ["SNOMED", "LOINC", "CQM"],
109
+ "SNOMED",
110
  #"bar",
111
  #os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
112
  #os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),