fix(llm_judge): Fix display issues in qa_browser #3133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
The .update method was deprecated in Gradio 4.x which caused the dropdown to show an error.
Added a CSS class to set the text color inside colored blocks to be black as the white text on those pastel colors had too little contrast to be easily read.
Before
![Screenshot 2024-03-08 at 16 27 33](https://private-user-images.githubusercontent.com/3781777/311297900-c341bb25-400a-4d81-8db6-5610457bc4a3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4Njk2MzMsIm5iZiI6MTcyMTg2OTMzMywicGF0aCI6Ii8zNzgxNzc3LzMxMTI5NzkwMC1jMzQxYmIyNS00MDBhLTRkODEtOGRiNi01NjEwNDU3YmM0YTMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjVUMDEwMjEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWFhNTYxNmMzMWU4MjZlM2JlZjE0Njg2ZTYzOTlhYmQyZmEzODVkMjNmYTMyZTZiZDIzMWU5MWQwZTNjZjZhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.XA236LQi7kOwb8_vHCgE2_5l-Zzo3FLATcy2QRGy-s4)
![Screenshot 2024-03-08 at 16 27 49](https://private-user-images.githubusercontent.com/3781777/311297938-7b92d467-381f-4ef2-84a3-0863e440d8ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4Njk2MzMsIm5iZiI6MTcyMTg2OTMzMywicGF0aCI6Ii8zNzgxNzc3LzMxMTI5NzkzOC03YjkyZDQ2Ny0zODFmLTRlZjItODRhMy0wODYzZTQ0MGQ4YmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjVUMDEwMjEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGFlYTcyYTczY2IwNjc2MjdkNDg0MTdjZmMzZjE5ZDY3OTk0ZDBkOGI0OGM4NjQzNjg4ODQ4M2FjYjYxNTgxMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.NiIew9f_AS3O0q_3nHQJJY20O7onh5cGcf3RYSciYoY)
After
![Screenshot 2024-03-08 at 16 27 07](https://private-user-images.githubusercontent.com/3781777/311298098-6cdb40a4-38d4-43cf-8f11-ed29dc13b51a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4Njk2MzMsIm5iZiI6MTcyMTg2OTMzMywicGF0aCI6Ii8zNzgxNzc3LzMxMTI5ODA5OC02Y2RiNDBhNC0zOGQ0LTQzY2YtOGYxMS1lZDI5ZGMxM2I1MWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjVUMDEwMjEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTFmY2Q4ODUwOWZhMGNiZTJiYzIwY2UyNTRhMmU0ZTdlNzg0ZDBlOTg2YjQ4MmUwNGI0OGQxMDg5MDZjZGQwYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.AifvzUibpO9Z76nOtyzP3y1fVcv3jKvuavh5OZkK6mQ)
Related issue number (if applicable)
Checks
format.sh
to lint the changes in this PR.