Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -155,30 +155,30 @@ demo = gr.Interface(
|
|
155 |
inputs=[
|
156 |
gr.Textbox(value="Allergy", label="Textbox"),
|
157 |
gr.Textbox(lines=3, value="Bathing", placeholder="Type here..", label="Textbox 2"),
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
gr.Checkbox(label="Check for NER Match on Submit"),
|
162 |
gr.CheckboxGroup(label="Clinical Terminology to Check", choices=CHOICES, value=CHOICES[0:2]),
|
163 |
gr.Radio(label="Preferred Terminology Output", choices=CHOICES, value=CHOICES[2]),
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
gr.Image(label="Webcam", source="webcam"),
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
gr.File(label="File"),
|
173 |
gr.Dataframe(label="Filters", headers=["Name", "Age", "Gender"]),
|
174 |
gr.Timeseries(x="time", y=["price", "value"], colors=["pink", "purple"]),
|
175 |
],
|
176 |
outputs=[
|
177 |
gr.Textbox(label="Textbox"),
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
gr.HighlightedText(label="HighlightedText", color_map={"punc": "pink", "test 0": "blue"}),
|
183 |
gr.HighlightedText(label="HighlightedText", show_legend=True),
|
184 |
gr.JSON(label="JSON"),
|
@@ -192,20 +192,20 @@ demo = gr.Interface(
|
|
192 |
[
|
193 |
"Allergy",
|
194 |
"Admission",
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
True,
|
199 |
["SNOMED", "LOINC", "CQM"],
|
200 |
"SNOMED",
|
201 |
-
|
202 |
-
#os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
203 |
-
#os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
204 |
-
#os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
205 |
os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
206 |
-
|
207 |
-
|
208 |
-
|
|
|
|
|
|
|
209 |
os.path.join(os.path.dirname(__file__), "files/titanic.csv"),
|
210 |
[[1, 2, 3], [3, 4, 5]],
|
211 |
os.path.join(os.path.dirname(__file__), "files/time.csv"),
|
|
|
155 |
inputs=[
|
156 |
gr.Textbox(value="Allergy", label="Textbox"),
|
157 |
gr.Textbox(lines=3, value="Bathing", placeholder="Type here..", label="Textbox 2"),
|
158 |
+
gr.Number(label="Number", value=42),
|
159 |
+
gr.Slider(10, 20, value=15, label="Slider: 10 - 20"),
|
160 |
+
gr.Slider(maximum=20, step=0.04, label="Slider: step @ 0.04"),
|
161 |
gr.Checkbox(label="Check for NER Match on Submit"),
|
162 |
gr.CheckboxGroup(label="Clinical Terminology to Check", choices=CHOICES, value=CHOICES[0:2]),
|
163 |
gr.Radio(label="Preferred Terminology Output", choices=CHOICES, value=CHOICES[2]),
|
164 |
+
gr.Dropdown(label="Dropdown", choices=CHOICES),
|
165 |
+
gr.Image(label="Image"),
|
166 |
+
gr.Image(label="Image w/ Cropper", tool="select"),
|
167 |
+
gr.Image(label="Sketchpad", source="canvas"),
|
168 |
gr.Image(label="Webcam", source="webcam"),
|
169 |
+
gr.Video(label="Video"),
|
170 |
+
gr.Audio(label="Audio"),
|
171 |
+
gr.Audio(label="Microphone", source="microphone"),
|
172 |
gr.File(label="File"),
|
173 |
gr.Dataframe(label="Filters", headers=["Name", "Age", "Gender"]),
|
174 |
gr.Timeseries(x="time", y=["price", "value"], colors=["pink", "purple"]),
|
175 |
],
|
176 |
outputs=[
|
177 |
gr.Textbox(label="Textbox"),
|
178 |
+
gr.Label(label="Label"),
|
179 |
+
gr.Audio(label="Audio"),
|
180 |
+
gr.Image(label="Image"),
|
181 |
+
gr.Video(label="Video"),
|
182 |
gr.HighlightedText(label="HighlightedText", color_map={"punc": "pink", "test 0": "blue"}),
|
183 |
gr.HighlightedText(label="HighlightedText", show_legend=True),
|
184 |
gr.JSON(label="JSON"),
|
|
|
192 |
[
|
193 |
"Allergy",
|
194 |
"Admission",
|
195 |
+
10,
|
196 |
+
12,
|
197 |
+
4,
|
198 |
True,
|
199 |
["SNOMED", "LOINC", "CQM"],
|
200 |
"SNOMED",
|
201 |
+
"bar",
|
|
|
|
|
|
|
202 |
os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
203 |
+
os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
204 |
+
os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
205 |
+
os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"),
|
206 |
+
os.path.join(os.path.dirname(__file__), "files/world.mp4"),
|
207 |
+
os.path.join(os.path.dirname(__file__), "files/cantina.wav"),
|
208 |
+
os.path.join(os.path.dirname(__file__), "files/cantina.wav"),
|
209 |
os.path.join(os.path.dirname(__file__), "files/titanic.csv"),
|
210 |
[[1, 2, 3], [3, 4, 5]],
|
211 |
os.path.join(os.path.dirname(__file__), "files/time.csv"),
|