Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ with gr.Blocks() as demo:
|
|
126 |
You can explore the results of different models below.
|
127 |
""")
|
128 |
gr.DataFrame(value=df, label="Benchmark Table", interactive=False) # Display the DataFrame
|
129 |
-
with gr.TabItem("
|
130 |
gr.Markdown("""
|
131 |
# Tag vs Tag plot
|
132 |
|
@@ -149,7 +149,7 @@ with gr.Blocks() as demo:
|
|
149 |
],
|
150 |
gr.Plot(label="plot", format="png",), allow_flagging="never",
|
151 |
)
|
152 |
-
with gr.TabItem("Helpfulness vs Harmfulness"):
|
153 |
gr.Markdown("""
|
154 |
# Helpfulness vs Harmfulness plot
|
155 |
|
@@ -165,7 +165,7 @@ with gr.Blocks() as demo:
|
|
165 |
],
|
166 |
gr.Plot(label="forecast", format="png"),
|
167 |
)
|
168 |
-
with gr.TabItem("Category Selection"):
|
169 |
category = gr.Radio(choices=list(cats), label="Category Selection")
|
170 |
subcategory = gr.Dropdown(choices=[], label="Subcategory Selection")
|
171 |
category.change(fn=rs_change, inputs=category, outputs=subcategory)
|
|
|
126 |
You can explore the results of different models below.
|
127 |
""")
|
128 |
gr.DataFrame(value=df, label="Benchmark Table", interactive=False) # Display the DataFrame
|
129 |
+
with gr.TabItem("Tag vs Tag Plot"):
|
130 |
gr.Markdown("""
|
131 |
# Tag vs Tag plot
|
132 |
|
|
|
149 |
],
|
150 |
gr.Plot(label="plot", format="png",), allow_flagging="never",
|
151 |
)
|
152 |
+
with gr.TabItem("Helpfulness vs Harmfulness Plot"):
|
153 |
gr.Markdown("""
|
154 |
# Helpfulness vs Harmfulness plot
|
155 |
|
|
|
165 |
],
|
166 |
gr.Plot(label="forecast", format="png"),
|
167 |
)
|
168 |
+
with gr.TabItem("Category Selection Plot"):
|
169 |
category = gr.Radio(choices=list(cats), label="Category Selection")
|
170 |
subcategory = gr.Dropdown(choices=[], label="Subcategory Selection")
|
171 |
category.change(fn=rs_change, inputs=category, outputs=subcategory)
|