Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from model_list import ModelList
|
3 |
+
model_list = ModelList()
|
4 |
+
with gr.Blocks(css=css) as demo:
|
5 |
+
with gr.Row():
|
6 |
+
gr.Image(value="RAII.svg",scale=1,show_download_button=False,show_share_button=False,show_label=False,height=100,container=False)
|
7 |
+
gr.Markdown("# Models for Healthcare Teams")
|
8 |
+
search_box = gr.Textbox(label='Search Name',placeholder='You can search for titles with regular expressions. e.g. (?<!sur)face',max_lines=1)
|
9 |
+
case_sensitive = gr.Checkbox(label='Case Sensitive')
|
10 |
+
filter_names1 = gr.CheckboxGroup(choices=['NLP','Computer Vision', 'Multi-Model'], value=['NLP','Computer Vision', 'Multi-Model'], label='Task')
|
11 |
+
data_type_names1 = ['Biomedical Corpus','Scientific Corpus','Clinical Corpus','Image','Mixed']
|
12 |
+
data_types1 = gr.CheckboxGroup(choices=data_type_names1, value=data_type_names1, label='Training Data Type')
|
13 |
+
search_button = gr.Button('Search')
|
14 |
+
table = gr.HTML(show_label=False)
|
15 |
+
demo.load(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,],outputs=[table,])
|
16 |
+
search_box.submit(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,], outputs=[table,])
|
17 |
+
search_button.click(fn=model_list.render, inputs=[search_box, case_sensitive, filter_names1, data_types1,], outputs=[table,])
|
18 |
+
demo.queue()
|
19 |
+
demo.launch(share=False)
|