AmenRa commited on
Commit
195a1fb
·
1 Parent(s): 02ee564
Files changed (2) hide show
  1. src/about.py +4 -1
  2. src/display/css_html_js.py +12 -0
src/about.py CHANGED
@@ -25,7 +25,10 @@ NUM_FEWSHOT = 0 # Change with your few shot
25
 
26
 
27
  # Your leaderboard name
28
- TITLE = """<img src="https://repository-images.githubusercontent.com/837144095/f9e0cced-dd7d-4a3f-b77a-f77dd3746b20" alt="guardbench-logo">"""
 
 
 
29
 
30
  # What does your leaderboard evaluate?
31
  INTRODUCTION_TEXT = """"""
 
25
 
26
 
27
  # Your leaderboard name
28
+ TITLE = """<div id="logo-container">
29
+ <img id="guardbench-logo" src="https://repository-images.githubusercontent.com/837144095/f9e0cced-dd7d-4a3f-b77a-f77dd3746b20" alt="guardbench-logo">
30
+ <h1 id="space-title">A Leaderboard for Guardrail Models</h1>
31
+ </div>"""
32
 
33
  # What does your leaderboard evaluate?
34
  INTRODUCTION_TEXT = """"""
src/display/css_html_js.py CHANGED
@@ -103,6 +103,18 @@ custom_css += """
103
  #space-title{
104
  margin-top: 1em
105
  }
 
 
 
 
 
 
 
 
 
 
 
 
106
  """
107
  # Custom css end
108
 
 
103
  #space-title{
104
  margin-top: 1em
105
  }
106
+
107
+ #logo-container {
108
+ text-align: center;
109
+ }
110
+
111
+ #guardbench-logo{
112
+ display: block;
113
+ margin-left: auto;
114
+ margin-right: auto;
115
+ width: 50%;
116
+ max-width: 640px;
117
+ }
118
  """
119
  # Custom css end
120