Spaces:
Running
Running
Commit
Β·
ef49d36
1
Parent(s):
32eaa7c
[ADD] MEDIC 5-pillar diagram
Browse files- app.py +3 -1
- src/about.py +1 -0
app.py
CHANGED
@@ -17,7 +17,8 @@ from src.about import (
|
|
17 |
# ENTITY_DISTRIBUTION_IMG,
|
18 |
# LLM_BENCHMARKS_TEXT_3,
|
19 |
TITLE,
|
20 |
-
LOGO
|
|
|
21 |
)
|
22 |
from src.display.css_html_js import custom_css
|
23 |
# changes to be made here
|
@@ -937,6 +938,7 @@ with demo:
|
|
937 |
with gr.Accordion("Cross Examination", open=False):
|
938 |
system_prompt, user_prompt = render_generation_templates(task="ce", generation_type="cross_examination")
|
939 |
with gr.TabItem("π About", elem_id="llm-benchmark-tab-table", id=5):
|
|
|
940 |
gr.Markdown(LLM_BENCHMARKS_TEXT_1, elem_classes="markdown-text")
|
941 |
# gr.HTML(EVALUATION_EXAMPLE_IMG, elem_classes="logo")
|
942 |
# gr.Markdown(LLM_BENCHMARKS_TEXT_2, elem_classes="markdown-text")
|
|
|
17 |
# ENTITY_DISTRIBUTION_IMG,
|
18 |
# LLM_BENCHMARKS_TEXT_3,
|
19 |
TITLE,
|
20 |
+
LOGO,
|
21 |
+
FIVE_PILLAR_DIAGRAM
|
22 |
)
|
23 |
from src.display.css_html_js import custom_css
|
24 |
# changes to be made here
|
|
|
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, elem_classes="logo")
|
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
@@ -102,6 +102,7 @@ NUM_FEWSHOT = 0 # Change with your few shot
|
|
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="500" height="333">"""
|
|
|
105 |
|
106 |
# What does your leaderboard evaluate?
|
107 |
INTRODUCTION_TEXT = """
|
|
|
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="500" height="333">"""
|
105 |
+
FIVE_PILLAR_DIAGRAM = """<img src="https://huggingface.co/spaces/m42-health/MEDIC-Benchmark/resolve/main/assets/MEDIC_Diagram.jpg" alt="MEDIC Diagram" width="450" height="300">"""
|
106 |
|
107 |
# What does your leaderboard evaluate?
|
108 |
INTRODUCTION_TEXT = """
|