Skip to content

Commit

Permalink
retry formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ygtangg committed Dec 10, 2024
1 parent c1eb2fd commit 251a745
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fastchat/serve/gradio_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,11 +800,13 @@ def build_visualizer():

gr.Markdown(visualizer_markdown, elem_id="visualizer_markdown")

with gr.Tabs() as tabs:
with gr.Tabs():
with gr.Tab("Topic Explorer", id=0):
topic_markdown = """
## *Welcome to the Topic Explorer*
This tool lets you dive into user-submitted prompts, organized into general categories and detailed subcategories. Using the sunburst chart, you can easily explore the data and understand how different topics are distributed.
This tool lets you dive into user-submitted prompts, organized into general
categories and detailed subcategories. Using the sunburst chart, you can easily
explore the data and understand how different topics are distributed.
### How to Use:
- Hover Over Segments: View the category name, the number of prompts, and their percentage.
Expand All @@ -825,15 +827,14 @@ def build_visualizer():
"""
gr.HTML(frame)


with gr.Tab("Price Analysis", id=1):
price_markdown = """
## *Price Control Data Visualizations*
Below are scatter-plots depicting a model's arena score against its cost effectiveness
and output token price.
"""
gr.Markdown(price_markdown)


def build_about():
about_markdown = """
Expand Down

0 comments on commit 251a745

Please sign in to comment.