guipenedo HF Staff commited on
Commit
25c7dfb
·
1 Parent(s): 9b20a68

diff & reveal

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -352,8 +352,8 @@ Total comparisons: {total_votes}
352
  progress = f"{app_state['current_index'] + 1} / {app_state['total_samples']}"
353
 
354
  # Model name content - show content if visibility is enabled, otherwise empty
355
- left_model_content = f"**Model:** {left_model}" if app_state['show_model_names'] else ""
356
- right_model_content = f"**Model:** {right_model}" if app_state['show_model_names'] else ""
357
 
358
  return (
359
  metadata['original_text'],
 
352
  progress = f"{app_state['current_index'] + 1} / {app_state['total_samples']}"
353
 
354
  # Model name content - show content if visibility is enabled, otherwise empty
355
+ left_model_content = gr.update(value=f"**Model:** {left_model}", visible=app_state['show_model_names'])
356
+ right_model_content = gr.update(value=f"**Model:** {right_model}", visible=app_state['show_model_names'])
357
 
358
  return (
359
  metadata['original_text'],