taesiri commited on
Commit
346ad00
Β·
1 Parent(s): 40282f1
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -425,7 +425,7 @@ def update_button_styles(verdict):
425
  value="☝️ A is better" if verdict == "A is better" else "☝️ A is better"
426
  )
427
  b_better_style = gr.update(
428
- value="πŸ‘‰ B is better" if verdict == "B is better" else "πŸ‘‰ B is better"
429
  )
430
  neither_style = gr.update(
431
  value="πŸ‘Ž Both are bad" if verdict == "Neither is good" else "πŸ‘Ž Both are bad"
@@ -497,7 +497,7 @@ with gr.Blocks() as demo:
497
  <div style="font-size: 1rem;">
498
  <strong>🀝 Tie</strong> &nbsp;&nbsp;|&nbsp;&nbsp;
499
  <strong>☝️ A is better</strong> &nbsp;&nbsp;|&nbsp;&nbsp;
500
- <strong>πŸ‘‰ B is better</strong>
501
  </div>
502
  <div style="color: #ff4444; font-size: 0.9rem; margin-top: 0.5rem;">
503
  Please ignore any watermark on the image. Your rating should not be affected by any watermark on the image.
@@ -526,7 +526,7 @@ with gr.Blocks() as demo:
526
  with gr.Column():
527
  image_b = gr.Image(label="Image B", show_label=True, height=500)
528
  gr.HTML("<h2 style='text-align: center;'>Image B</h2>")
529
- b_better_btn = gr.Button("πŸ‘‰ B is better", variant="secondary")
530
 
531
  # Add confirmation button in new row
532
  with gr.Row():
 
425
  value="☝️ A is better" if verdict == "A is better" else "☝️ A is better"
426
  )
427
  b_better_style = gr.update(
428
+ value="☝️ B is better" if verdict == "B is better" else "☝️ B is better"
429
  )
430
  neither_style = gr.update(
431
  value="πŸ‘Ž Both are bad" if verdict == "Neither is good" else "πŸ‘Ž Both are bad"
 
497
  <div style="font-size: 1rem;">
498
  <strong>🀝 Tie</strong> &nbsp;&nbsp;|&nbsp;&nbsp;
499
  <strong>☝️ A is better</strong> &nbsp;&nbsp;|&nbsp;&nbsp;
500
+ <strong>☝️ B is better</strong>
501
  </div>
502
  <div style="color: #ff4444; font-size: 0.9rem; margin-top: 0.5rem;">
503
  Please ignore any watermark on the image. Your rating should not be affected by any watermark on the image.
 
526
  with gr.Column():
527
  image_b = gr.Image(label="Image B", show_label=True, height=500)
528
  gr.HTML("<h2 style='text-align: center;'>Image B</h2>")
529
+ b_better_btn = gr.Button("☝️ B is better", variant="secondary")
530
 
531
  # Add confirmation button in new row
532
  with gr.Row():