Spaces:
Runtime error
Runtime error
fix logos
Browse files- 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 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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) 📊
|