an0nymous commited on
Commit
1e8383c
·
verified ·
1 Parent(s): 24b6d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -235,6 +235,18 @@ with gr.Blocks() as demo:
235
  ],
236
  gr.Plot(label="plot", format="png",), allow_flagging="never",
237
  )
 
 
 
 
 
 
 
 
 
 
 
 
238
 
239
  # Launch the Gradio app
240
  demo.launch(share=True)
 
235
  ],
236
  gr.Plot(label="plot", format="png",), allow_flagging="never",
237
  )
238
+ with gr.TabItem("Dataset Viewer"):
239
+ with gr.Row():
240
+ # loads one sample
241
+ gr.Markdown(
242
+ """## Random Dataset Sample Viewer
243
+ Warning, refusals, XSTest, and donotanswer datasets have sensitive content.""")
244
+ subset_selector = gr.Dropdown(sub_cats, label="Subset", value=None, multiselect=True)
245
+ button = gr.Button("Show Random Sample")
246
+
247
+ with gr.Row():
248
+ sample_display = gr.Markdown("{sampled data loads here}")
249
+
250
 
251
  # Launch the Gradio app
252
  demo.launch(share=True)