Spaces:
Running
Running
Commit
Β·
85b4142
1
Parent(s):
3b28b62
[ADD] CSS for logo and MEDIC 5-pillar diagram
Browse files- app.py +2 -2
- src/about.py +2 -2
- src/display/css_html_js.py +1 -1
app.py
CHANGED
@@ -244,7 +244,7 @@ demo = gr.Blocks(css=custom_css)
|
|
244 |
with demo:
|
245 |
print("hello")
|
246 |
gr.HTML(TITLE)
|
247 |
-
gr.HTML(LOGO
|
248 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
249 |
|
250 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
@@ -938,7 +938,7 @@ with demo:
|
|
938 |
with gr.Accordion("Cross Examination", open=False):
|
939 |
system_prompt, user_prompt = render_generation_templates(task="ce", generation_type="cross_examination")
|
940 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=5):
|
941 |
-
gr.HTML(FIVE_PILLAR_DIAGRAM
|
942 |
gr.Markdown(LLM_BENCHMARKS_TEXT_1, elem_classes="markdown-text")
|
943 |
# gr.HTML(EVALUATION_EXAMPLE_IMG, elem_classes="logo")
|
944 |
# gr.Markdown(LLM_BENCHMARKS_TEXT_2, elem_classes="markdown-text")
|
|
|
244 |
with demo:
|
245 |
print("hello")
|
246 |
gr.HTML(TITLE)
|
247 |
+
gr.HTML(LOGO)
|
248 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
249 |
|
250 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
|
|
938 |
with gr.Accordion("Cross Examination", open=False):
|
939 |
system_prompt, user_prompt = render_generation_templates(task="ce", generation_type="cross_examination")
|
940 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=5):
|
941 |
+
gr.HTML(FIVE_PILLAR_DIAGRAM)
|
942 |
gr.Markdown(LLM_BENCHMARKS_TEXT_1, elem_classes="markdown-text")
|
943 |
# gr.HTML(EVALUATION_EXAMPLE_IMG, elem_classes="logo")
|
944 |
# gr.Markdown(LLM_BENCHMARKS_TEXT_2, elem_classes="markdown-text")
|
src/about.py
CHANGED
@@ -101,8 +101,8 @@ NUM_FEWSHOT = 0 # Change with your few shot
|
|
101 |
# Your leaderboard name
|
102 |
TITLE = """""" #<h1 align="center" id="space-title"> NER Leaderboard</h1>"""
|
103 |
# LOGO = """<img src="https://equalengineers.com/wp-content/uploads/2024/04/dummy-logo-5b.png" alt="Clinical X HF" width="500" height="333">"""
|
104 |
-
LOGO = """<img src="https://huggingface.co/spaces/m42-health/MEDIC-Benchmark/resolve/main/assets/image.png" alt="Clinical X HF" width="
|
105 |
-
FIVE_PILLAR_DIAGRAM = """<img src="https://huggingface.co/spaces/m42-health/MEDIC-Benchmark/resolve/main/assets/MEDIC_Diagram.jpg" alt="MEDIC Diagram" width="
|
106 |
|
107 |
# What does your leaderboard evaluate?
|
108 |
INTRODUCTION_TEXT = """
|
|
|
101 |
# Your leaderboard name
|
102 |
TITLE = """""" #<h1 align="center" id="space-title"> NER Leaderboard</h1>"""
|
103 |
# LOGO = """<img src="https://equalengineers.com/wp-content/uploads/2024/04/dummy-logo-5b.png" alt="Clinical X HF" width="500" height="333">"""
|
104 |
+
LOGO = """<img src="https://huggingface.co/spaces/m42-health/MEDIC-Benchmark/resolve/main/assets/image.png" alt="Clinical X HF" width="40%" style="display: block; margin-left: auto; margin-right: auto;">"""
|
105 |
+
FIVE_PILLAR_DIAGRAM = """<img src="https://huggingface.co/spaces/m42-health/MEDIC-Benchmark/resolve/main/assets/MEDIC_Diagram.jpg" alt="MEDIC Diagram" width="65%" style="display: block; margin-left: auto; margin-right: auto;">"""
|
106 |
|
107 |
# What does your leaderboard evaluate?
|
108 |
INTRODUCTION_TEXT = """
|
src/display/css_html_js.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
custom_css = """
|
2 |
.logo {
|
3 |
-
width:
|
4 |
height: auto;
|
5 |
margin: 0 auto;
|
6 |
max-width: 100%
|
|
|
1 |
custom_css = """
|
2 |
.logo {
|
3 |
+
width: 40%;
|
4 |
height: auto;
|
5 |
margin: 0 auto;
|
6 |
max-width: 100%
|