jihoo-kim commited on
Commit
7776cef
1 Parent(s): 0484032
Files changed (1) hide show
  1. src/display/about.py +10 -2
src/display/about.py CHANGED
@@ -1,8 +1,16 @@
 
 
1
  from src.display.utils import ModelType
2
 
 
3
 
4
- TITLE = """<img src="https://upstage-open-ko-llm-leaderboard-logos.s3.ap-northeast-2.amazonaws.com/header_logo.png" style="width:30%;display:block;margin-left:auto;margin-right:auto">"""
5
- BOTTOM_LOGO = """<img src="https://upstage-open-ko-llm-leaderboard-logos.s3.ap-northeast-2.amazonaws.com/footer_logo_240715.png" style="width:75%;display:block;margin-left:auto;margin-right:auto">"""
 
 
 
 
 
6
 
7
  INTRODUCTION_TEXT = f"""
8
  The previous Leaderboard version is live [here](https://huggingface.co/spaces/choco9966/open-ko-llm-leaderboard-old) 📊
 
1
+ import os
2
+ import base64
3
  from src.display.utils import ModelType
4
 
5
+ current_dir = os.path.dirname(os.path.realpath(__file__))
6
 
7
+ with open(os.path.join(current_dir, "main_logo.png"), "rb") as image_file:
8
+ main_logo = base64.b64encode(image_file.read()).decode('utf-8')
9
+ with open(os.path.join(current_dir, "host_sponsor.png"), "rb") as image_file:
10
+ host_sponsor = base64.b64encode(image_file.read()).decode('utf-8')
11
+
12
+ TITLE = f"""<img src="data:image/jpeg;base64,{main_logo}" style="width:30%;display:block;margin-left:auto;margin-right:auto">"""
13
+ BOTTOM_LOGO = f"""<img src="data:image/jpeg;base64,{host_sponsor}" style="width:75%;display:block;margin-left:auto;margin-right:auto">"""
14
 
15
  INTRODUCTION_TEXT = f"""
16
  The previous Leaderboard version is live [here](https://huggingface.co/spaces/choco9966/open-ko-llm-leaderboard-old) 📊