zhuohan-7 commited on
Commit
16943d7
·
1 Parent(s): c85760c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app/show_examples.py +13 -10
app/show_examples.py CHANGED
@@ -60,13 +60,13 @@ def show_dataset_examples(display_name):
60
  """
61
  st.markdown(custom_css, unsafe_allow_html=True)
62
 
63
- s = f"""<tr>
64
- <td><b>{html.escape(question_text.replace('(A)', '<br>(A)').replace('(B)', '<br>(B)').replace('(C)', '<br>(C)'))}
65
- </td>
66
- <td><b>{html.escape(dataset[index]['answer']['text'])}
67
- </td>
68
- </tr>
69
- """
70
 
71
  body_details = f"""<table style="table-layout: fixed; width:100%">
72
  <thead>
@@ -74,10 +74,13 @@ def show_dataset_examples(display_name):
74
  <th style="width:50%">PROMPT</th>
75
  <th style="width:50%">ANSWER</th>
76
  </tr>
 
 
 
 
 
 
77
  </thead>
78
- <tbody>
79
- {s}
80
- </tbody>
81
  </table>"""
82
 
83
  st.markdown(f"""<div class="my-container-table">
 
60
  """
61
  st.markdown(custom_css, unsafe_allow_html=True)
62
 
63
+ # s = f"""<tr>
64
+ # <td><b>{html.escape(question_text.replace('(A)', '<br>(A)').replace('(B)', '<br>(B)').replace('(C)', '<br>(C)'))}
65
+ # </td>
66
+ # <td><b>{html.escape(dataset[index]['answer']['text'])}
67
+ # </td>
68
+ # </tr>
69
+ # """
70
 
71
  body_details = f"""<table style="table-layout: fixed; width:100%">
72
  <thead>
 
74
  <th style="width:50%">PROMPT</th>
75
  <th style="width:50%">ANSWER</th>
76
  </tr>
77
+ <tr>
78
+ <td><b>{html.escape(question_text.replace('(A)', '<br>(A)').replace('(B)', '<br>(B)').replace('(C)', '<br>(C)'))}
79
+ </td>
80
+ <td><b>{html.escape(dataset[index]['answer']['text'])}
81
+ </td>
82
+ </tr>
83
  </thead>
 
 
 
84
  </table>"""
85
 
86
  st.markdown(f"""<div class="my-container-table">