rohansampath commited on
Commit
3389471
·
verified ·
1 Parent(s): dfececa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -15
app.py CHANGED
@@ -150,7 +150,17 @@ def enhanced_format_preview_for_display(preview_data):
150
  # ---------------------------------------------------------------------------
151
  # 3. Gradio Interface
152
  # ---------------------------------------------------------------------------
153
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
154
  gr.Markdown("# Head-to-Head Model Evaluation Comparator")
155
  gr.Markdown("""
156
  This demo evaluates two models (or one model with two different configs) on a benchmark dataset.
@@ -450,17 +460,4 @@ with gr.Blocks() as demo:
450
  ]
451
  )
452
 
453
- # Add custom CSS for styling
454
- css = """
455
- #preview_header {
456
- margin-bottom: 10px;
457
- margin-top: 5px;
458
- }
459
- #preview_table {
460
- background-color: #f8f9fa;
461
- border-radius: 8px;
462
- padding: 10px;
463
- }
464
- """
465
-
466
- demo.launch(css=css)
 
150
  # ---------------------------------------------------------------------------
151
  # 3. Gradio Interface
152
  # ---------------------------------------------------------------------------
153
+ with gr.Blocks(css="""
154
+ #preview_header {
155
+ margin-bottom: 10px;
156
+ margin-top: 5px;
157
+ }
158
+ #preview_table {
159
+ background-color: #f8f9fa;
160
+ border-radius: 8px;
161
+ padding: 10px;
162
+ }
163
+ """) as demo:
164
  gr.Markdown("# Head-to-Head Model Evaluation Comparator")
165
  gr.Markdown("""
166
  This demo evaluates two models (or one model with two different configs) on a benchmark dataset.
 
460
  ]
461
  )
462
 
463
+ demo.launch()