diff & reveal
Browse files
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}"
|
356 |
-
right_model_content = f"**Model:** {right_model}"
|
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'],
|