Spaces:
Sleeping
Sleeping
Update app.py
Browse filesChange order of tabs
app.py
CHANGED
@@ -147,6 +147,18 @@ def random_sample(r: gr.Request):
|
|
147 |
# Gradio Interface
|
148 |
with gr.Blocks() as demo:
|
149 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
with gr.TabItem("Benchmark Table"):
|
151 |
gr.Markdown("""
|
152 |
# Benchmark Results
|
@@ -217,18 +229,7 @@ with gr.Blocks() as demo:
|
|
217 |
col = gr.Radio(['Organisation', 'Size'], value="Organisation", label="Color Label")
|
218 |
plot_button = gr.Button("Plot Scatter")
|
219 |
plot_button.click(fn=plot_scatter_tab4, inputs=[category, subcategory, x, y, col], outputs=gr.Plot())
|
220 |
-
|
221 |
-
gr.Interface(
|
222 |
-
plot_scatter_tab5,
|
223 |
-
[
|
224 |
-
gr.Radio(["Copyright", "Malware", "Unfair/dangerous", "All"], value="All", label="Category Selection"),
|
225 |
-
gr.Radio(['H', 'A', 'W', 'R'], value="H", label="X-axis Label"),
|
226 |
-
gr.Radio(['H', 'A', 'W', 'R'], value="R", label="Y-axis Label"),
|
227 |
-
gr.Radio(['H', 'A', 'W', 'R'], value="A", label="Z-axis Label"),
|
228 |
-
gr.Radio(['Organisation', 'Size'], value="Organisation", label="Color Label"),
|
229 |
-
],
|
230 |
-
gr.Plot(label="plot", format="png",), allow_flagging="never",
|
231 |
-
)
|
232 |
with gr.TabItem("Dataset Viewer"):
|
233 |
with gr.Row():
|
234 |
# loads one sample
|
|
|
147 |
# Gradio Interface
|
148 |
with gr.Blocks() as demo:
|
149 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
150 |
+
with gr.TabItem("3D Visualisation"):
|
151 |
+
gr.Interface(
|
152 |
+
plot_scatter_tab5,
|
153 |
+
[
|
154 |
+
gr.Radio(["Copyright", "Malware", "Unfair/dangerous", "All"], value="All", label="Category Selection"),
|
155 |
+
gr.Radio(['H', 'A', 'W', 'R'], value="H", label="X-axis Label"),
|
156 |
+
gr.Radio(['H', 'A', 'W', 'R'], value="R", label="Y-axis Label"),
|
157 |
+
gr.Radio(['H', 'A', 'W', 'R'], value="A", label="Z-axis Label"),
|
158 |
+
gr.Radio(['Organisation', 'Size'], value="Organisation", label="Color Label"),
|
159 |
+
],
|
160 |
+
gr.Plot(label="plot", format="png",), allow_flagging="never",
|
161 |
+
)
|
162 |
with gr.TabItem("Benchmark Table"):
|
163 |
gr.Markdown("""
|
164 |
# Benchmark Results
|
|
|
229 |
col = gr.Radio(['Organisation', 'Size'], value="Organisation", label="Color Label")
|
230 |
plot_button = gr.Button("Plot Scatter")
|
231 |
plot_button.click(fn=plot_scatter_tab4, inputs=[category, subcategory, x, y, col], outputs=gr.Plot())
|
232 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
with gr.TabItem("Dataset Viewer"):
|
234 |
with gr.Row():
|
235 |
# loads one sample
|