Spaces:
Runtime error
Runtime error
ncoop57
commited on
Commit
·
cfeaf7d
1
Parent(s):
8952db1
Add char rep tab
Browse files
app.py
CHANGED
@@ -86,6 +86,18 @@ def check_filtered(criteria, dataset, threshold):
|
|
86 |
with gr.Blocks() as demo:
|
87 |
dataset = gr.Radio(dataset_names, label="Dataset", value="arXiv")
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
with gr.Tab("Number of Words Criteria"):
|
90 |
# plot some random data
|
91 |
plot = gr.Plot()
|
|
|
86 |
with gr.Blocks() as demo:
|
87 |
dataset = gr.Radio(dataset_names, label="Dataset", value="arXiv")
|
88 |
|
89 |
+
with gr.Tab("Character Repetition Criteria"):
|
90 |
+
# plot some random data
|
91 |
+
plot = gr.Plot()
|
92 |
+
threshold = gr.Slider(minimum=0, maximum=1, label="Threshold")
|
93 |
+
calculate = gr.Button("Calculate")
|
94 |
+
check = gr.Button("Check Filtered Data")
|
95 |
+
filtered_data = gr.Textbox(lines=5, label="Filtered Data")
|
96 |
+
plot_fn = partial(plt_plot, "check_char_repetition_criteria")
|
97 |
+
calculate.click(plot_fn, [dataset, threshold], plot)
|
98 |
+
check_fn = partial(check_filtered, "check_char_repetition_criteria")
|
99 |
+
check.click(check_fn, [dataset, threshold], filtered_data)
|
100 |
+
|
101 |
with gr.Tab("Number of Words Criteria"):
|
102 |
# plot some random data
|
103 |
plot = gr.Plot()
|