Skip to content

Commit

Permalink
fixed mobile formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ygtangg committed Jan 12, 2025
1 parent 74a4b2e commit e978cd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastchat/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def bot_response(
@media screen and (max-width: 769px) {
.visualizer {
height: 100vw;
height: 180vw;
overflow-y: scroll;
width: 100%;
overflow-x: hidden;
Expand Down
3 changes: 2 additions & 1 deletion fastchat/serve/gradio_web_server_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ def build_visualizer():
visualizer_markdown = """
# 🔍 Arena Visualizer
This tool provides an interactive way to explore how people are using Chatbot Arena.
Using [topic clustering](https://github.com/MaartenGr/BERTopic), we organized user-submitted prompts from Arena battles into broad and specific categories.
Using *[topic clustering](https://github.com/MaartenGr/BERTopic)*, we organized user-submitted prompts from Arena battles into broad and specific categories.
Dive in to uncover insights about the distribution and themes of these prompts!
"""
gr.Markdown(visualizer_markdown, elem_id="visualizer_markdown")
expandText = "👇 Expand to see detailed instructions on how to use the visualizer"
with gr.Accordion(expandText, open=False):
instructions = """
- Hover Over Segments: View the category name, the number of prompts, and their percentage.
- *On mobile devices*: Tap instead of hover.
- Click to Explore:
- Click on a main category to see its subcategories.
- Click on subcategories to see example prompts in the sidebar.
Expand Down

0 comments on commit e978cd8

Please sign in to comment.