Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -103,35 +103,19 @@ span.svelte-s1r2yt{font-weight: bold !important;
|
|
103 |
}
|
104 |
"""
|
105 |
with gr.Blocks(css=css) as demo:
|
106 |
-
with gr.
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
search_button.click(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,], outputs=[table,])
|
120 |
-
|
121 |
-
with gr.Tab(label="MODELS",elem_id="mdls"):
|
122 |
-
with gr.Row():
|
123 |
-
gr.Image(value="RAII.svg",scale=1,show_download_button=False,show_share_button=False,show_label=False,height=100,container=False)
|
124 |
-
gr.Markdown("# Models for Healthcare Teams")
|
125 |
-
search_box = gr.Textbox(label='Search Name',placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1)
|
126 |
-
case_sensitive = gr.Checkbox(label='Case Sensitive')
|
127 |
-
filter_names1 = gr.CheckboxGroup(choices=['NLP','Computer Vision', 'Multi-Model'], value=['NLP','Computer Vision', 'Multi-Model'], label='Task')
|
128 |
-
data_type_names1 = ['Biomedical Corpus','Scientific Corpus','Clinical Corpus','Image','Mixed']
|
129 |
-
data_types1 = gr.CheckboxGroup(choices=data_type_names1, value=data_type_names1, label='Training Data Type')
|
130 |
-
search_button = gr.Button('Search')
|
131 |
-
table = gr.HTML(show_label=False)
|
132 |
-
demo.load(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,],outputs=[table,])
|
133 |
-
search_box.submit(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,], outputs=[table,])
|
134 |
-
search_button.click(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,], outputs=[table,])
|
135 |
|
136 |
demo.queue()
|
137 |
demo.launch(share=False)
|
|
|
103 |
}
|
104 |
"""
|
105 |
with gr.Blocks(css=css) as demo:
|
106 |
+
with gr.Row():
|
107 |
+
gr.Image(value="RAII.svg",scale=1,show_download_button=False,show_share_button=False,show_label=False,height=100,container=False)
|
108 |
+
gr.Markdown("# Datasets for Healthcare Teams")
|
109 |
+
search_box = gr.Textbox( label='Search Name', placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1)
|
110 |
+
case_sensitive = gr.Checkbox(label='Case Sensitive')
|
111 |
+
filter_names = gr.CheckboxGroup(choices=['Real Data','Synthetic Data',], value=['Real Data','Synthetic Data',], label='Type')
|
112 |
+
data_type_names = ['Claims','Scientific','Corpus',]
|
113 |
+
data_types = gr.CheckboxGroup(choices=data_type_names, value=data_type_names, label='Tags')
|
114 |
+
search_button = gr.Button('Search')
|
115 |
+
table = gr.HTML(show_label=False)
|
116 |
+
demo.load(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,],outputs=[table,])
|
117 |
+
search_box.submit(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,], outputs=[table,])
|
118 |
+
search_button.click(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,], outputs=[table,])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
|
120 |
demo.queue()
|
121 |
demo.launch(share=False)
|