Yaofu3 commited on
Commit
f494d8b
1 Parent(s): 656a0d5

update logo

Browse files
app.py CHANGED
@@ -2,6 +2,7 @@
2
  import os
3
  import datetime
4
  import socket
 
5
  from threading import Thread
6
 
7
  import gradio as gr
@@ -20,6 +21,7 @@ from src.display.about import (
20
  LLM_BENCHMARKS_DETAILS,
21
  FAQ_TEXT,
22
  TITLE,
 
23
  )
24
 
25
  from src.display.css_html_js import custom_css
@@ -216,10 +218,21 @@ def load_query(request: gr.Request):
216
  return query
217
 
218
 
 
 
 
 
 
 
 
 
 
 
219
  demo = gr.Blocks(css=custom_css)
220
  with demo:
221
  gr.HTML(TITLE)
222
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
 
223
 
224
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
225
  with gr.TabItem("open-moe-llm-leaderboard", elem_id="llm-benchmark-tab-table", id=0):
 
2
  import os
3
  import datetime
4
  import socket
5
+ import base64
6
  from threading import Thread
7
 
8
  import gradio as gr
 
21
  LLM_BENCHMARKS_DETAILS,
22
  FAQ_TEXT,
23
  TITLE,
24
+ ACKNOWLEDGEMENT_TEXT,
25
  )
26
 
27
  from src.display.css_html_js import custom_css
 
218
  return query
219
 
220
 
221
+ def get_image_html(url, image_path):
222
+ with open(image_path, "rb") as image_file:
223
+ encoded_string = base64.b64encode(image_file.read()).decode()
224
+ return f'<a href="{url}" target="_blank"><img src="data:image/jpg;base64,{encoded_string}" alt="NetMind.AI Logo" style="width:100pt;"></a>'
225
+
226
+
227
+ # Prepare the HTML content with the image
228
+ image_html = get_image_html("https://netmind.ai/home", "./src/display/imgs/Netmind.AI_LOGO.jpg")
229
+
230
+
231
  demo = gr.Blocks(css=custom_css)
232
  with demo:
233
  gr.HTML(TITLE)
234
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
235
+ gr.HTML(ACKNOWLEDGEMENT_TEXT.format(image_html=image_html))
236
 
237
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
238
  with gr.TabItem("open-moe-llm-leaderboard", elem_id="llm-benchmark-tab-table", id=0):
src/display/about.py CHANGED
@@ -3,7 +3,8 @@ from src.display.utils import ModelType
3
  TITLE = """<h1 align="center" id="space-title">OPEN-MOE-LLM-LEADERBOARD</h1>"""
4
 
5
  INTRODUCTION_TEXT = """
6
- The OPEN-MOE-LLM-LEADERBOARD is specifically designed to assess the performance and efficiency of various Mixture of Experts (MoE) Large Language Models (LLMs). This initiative, driven by the open-source community, aims to comprehensively evaluate these advanced MoE LLMs. We extend our gratitude to the Huggingface for the GPU community grant that supported the initial debugging process, and to [NetMind.AI](https://netmind.ai/home) for their generous GPU donation, which ensures the continuous operation of the Leaderboard.
 
7
 
8
  The OPEN-MOE-LLM-LEADERBOARD includes generation and multiple choice tasks to measure the performance and efficiency of MOE LLMs.
9
 
@@ -20,6 +21,15 @@ Columns and Metrics:
20
  - Precision: The precison of used model.
21
 
22
  """
 
 
 
 
 
 
 
 
 
23
  LLM_BENCHMARKS_TEXT = f"""
24
 
25
  """
 
3
  TITLE = """<h1 align="center" id="space-title">OPEN-MOE-LLM-LEADERBOARD</h1>"""
4
 
5
  INTRODUCTION_TEXT = """
6
+ The OPEN-MOE-LLM-LEADERBOARD is specifically designed to assess the performance and efficiency of various Mixture of Experts (MoE) Large Language Models (LLMs).
7
+ This initiative, driven by the open-source community, aims to comprehensively evaluate these advanced MoE LLMs.
8
 
9
  The OPEN-MOE-LLM-LEADERBOARD includes generation and multiple choice tasks to measure the performance and efficiency of MOE LLMs.
10
 
 
21
  - Precision: The precison of used model.
22
 
23
  """
24
+
25
+ ACKNOWLEDGEMENT_TEXT = """
26
+ <div>
27
+ <h4>Acknowledgements</h4>
28
+ {image_html}
29
+ <p>We express our sincere gratitude to <a href="https://netmind.ai/home">NetMind.AI</a> for their generous donation of GPUs, which plays a crucial role in ensuring the continuous operation of our Leaderboard.</p>
30
+ </div>
31
+ """
32
+
33
  LLM_BENCHMARKS_TEXT = f"""
34
 
35
  """
src/display/imgs/NetMind.AI_LOGO.svg DELETED
src/display/imgs/Netmind.AI_LOGO.jpg ADDED
src/display/imgs/Netmind.AI_LOGO.png DELETED
Binary file (9.89 kB)