Allen Park commited on
Commit
ed9ab49
·
1 Parent(s): 2d01a69

fix(make example buttons width fit-content and padding + add markdown new line above example header)

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -96,7 +96,6 @@ HEADER = """
96
  """
97
 
98
  EXAMPLES_HEADER = """
99
- <br />
100
  # Try it Yourself!
101
  """
102
 
@@ -104,8 +103,10 @@ UPLOADABLE_FILE_TYPES = [".pdf", ".txt", ".docx", ".doc"]
104
 
105
  css = """
106
  .example-button {
 
107
  font-size: 1rem;
108
  font-weight: 400 !important;
 
109
  }
110
  """
111
 
@@ -227,6 +228,7 @@ with gr.Blocks(css=css, theme=gr.themes.Default(spacing_size="sm", font=[gr.them
227
  with gr.Column(scale=1):
228
  reasoning = gr.Textbox(label="Reasoning")
229
  score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
 
230
  gr.Markdown(EXAMPLES_HEADER)
231
  with gr.Row():
232
  with gr.Column():
 
96
  """
97
 
98
  EXAMPLES_HEADER = """
 
99
  # Try it Yourself!
100
  """
101
 
 
103
 
104
  css = """
105
  .example-button {
106
+ width: fit-content;
107
  font-size: 1rem;
108
  font-weight: 400 !important;
109
+ padding: .5rem 1rem;
110
  }
111
  """
112
 
 
228
  with gr.Column(scale=1):
229
  reasoning = gr.Textbox(label="Reasoning")
230
  score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
231
+ gr.Markdown("&nbsp;")
232
  gr.Markdown(EXAMPLES_HEADER)
233
  with gr.Row():
234
  with gr.Column():