Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -467,11 +467,9 @@ REASONING: This text is polite because it expresses gratitude and encourages the
|
|
467 |
gr.Markdown(
|
468 |
"### Sample Output",
|
469 |
)
|
470 |
-
dataset = (
|
471 |
-
|
472 |
-
|
473 |
-
.sample(n=5)
|
474 |
-
)
|
475 |
dataframe = gr.Dataframe(value=dataset, show_label=False)
|
476 |
|
477 |
state = gr.State({"output_path": None, "timestamp": None})
|
|
|
467 |
gr.Markdown(
|
468 |
"### Sample Output",
|
469 |
)
|
470 |
+
dataset = load_dataset("intel/polite-guard", data_files={"validation": "data/validation/val_cot.csv"})
|
471 |
+
dataset = dataset["validation"].to_pandas().sample(n=5)
|
472 |
+
|
|
|
|
|
473 |
dataframe = gr.Dataframe(value=dataset, show_label=False)
|
474 |
|
475 |
state = gr.State({"output_path": None, "timestamp": None})
|