Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,6 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
import gradio as gr
|
4 |
-
from model_list import ModelList
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
import numpy as np
|
9 |
import pandas as pd
|
10 |
-
|
11 |
-
from huggingface_hub.hf_api import SpaceInfo
|
12 |
|
13 |
SHEET_ID = '1BWKw2ygYQUUPcNdSJhW9OkXILWO5i-dCa5Uahn9dHNo'
|
14 |
SHEET_NAME = 'Datasets'
|
@@ -82,10 +74,9 @@ class DataList:
|
|
82 |
return html
|
83 |
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
css = """
|
89 |
button.svelte-kqij2n{font-weight: bold !important;
|
90 |
background-color: #ebecf0;
|
91 |
color: black;
|
@@ -102,7 +93,7 @@ margin-left: 5px;}
|
|
102 |
span.svelte-s1r2yt{font-weight: bold !important;
|
103 |
}
|
104 |
"""
|
105 |
-
|
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")
|
@@ -117,9 +108,5 @@ span.svelte-s1r2yt{font-weight: bold !important;
|
|
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 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
if __name__ == '__main__':
|
125 |
-
main()
|
|
|
|
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
2 |
import pandas as pd
|
3 |
+
|
|
|
4 |
|
5 |
SHEET_ID = '1BWKw2ygYQUUPcNdSJhW9OkXILWO5i-dCa5Uahn9dHNo'
|
6 |
SHEET_NAME = 'Datasets'
|
|
|
74 |
return html
|
75 |
|
76 |
|
77 |
+
data_list = DataList()
|
78 |
+
|
79 |
+
css = """
|
|
|
80 |
button.svelte-kqij2n{font-weight: bold !important;
|
81 |
background-color: #ebecf0;
|
82 |
color: black;
|
|
|
93 |
span.svelte-s1r2yt{font-weight: bold !important;
|
94 |
}
|
95 |
"""
|
96 |
+
with gr.Blocks(css=css) as demo:
|
97 |
with gr.Row():
|
98 |
gr.Image(value="RAII.svg",scale=1,show_download_button=False,show_share_button=False,show_label=False,height=100,container=False)
|
99 |
gr.Markdown("# Datasets for Healthcare Teams")
|
|
|
108 |
search_box.submit(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,], outputs=[table,])
|
109 |
search_button.click(fn=data_list.render, inputs=[search_box, case_sensitive, filter_names, data_types,], outputs=[table,])
|
110 |
|
111 |
+
demo.queue()
|
112 |
+
demo.launch(share=False)
|
|
|
|
|
|
|
|