farimafatahi commited on
Commit
88dddb9
·
verified ·
1 Parent(s): 0b8b19e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import pandas as pd
3
  from PIL import Image
4
  import base64
5
  from io import BytesIO
 
6
 
7
  # Set up page config
8
  st.set_page_config(
@@ -10,6 +11,10 @@ st.set_page_config(
10
  layout="wide"
11
  )
12
 
 
 
 
 
13
  # Load the image
14
  image = Image.open("factEvalSteps.png")
15
  logo_image = Image.open("Factbench_logo.png")
@@ -101,6 +106,11 @@ st.markdown(
101
  """,
102
  unsafe_allow_html=True
103
  )
 
 
 
 
 
104
  st.markdown('<div class="title">FactBench Leaderboard</div>',
105
  unsafe_allow_html=True)
106
  st.markdown('<div class="description">Benchmark for LM Factuality Evaluation</div>',
 
3
  from PIL import Image
4
  import base64
5
  from io import BytesIO
6
+ import gradio as gr
7
 
8
  # Set up page config
9
  st.set_page_config(
 
11
  layout="wide"
12
  )
13
 
14
+ # load header
15
+ with open("_header.md", "r") as f:
16
+ HEADER_MD = f.read()
17
+
18
  # Load the image
19
  image = Image.open("factEvalSteps.png")
20
  logo_image = Image.open("Factbench_logo.png")
 
106
  """,
107
  unsafe_allow_html=True
108
  )
109
+
110
+ header_md_text = HEADER_MD # make some parameters later
111
+ gr.Markdown(header_md_text, elem_classes="markdown-text")
112
+
113
+
114
  st.markdown('<div class="title">FactBench Leaderboard</div>',
115
  unsafe_allow_html=True)
116
  st.markdown('<div class="description">Benchmark for LM Factuality Evaluation</div>',