Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def main(percentage=10):
|
|
91 |
label_list, label_fractions = get_label_fractions(read_label_frequencies())
|
92 |
|
93 |
# How many new random labels are we creating?
|
94 |
-
num_new_labels = int(round(NUM_EXAMPLES
|
95 |
|
96 |
# Create a set of indices that are randomly chosen, to change their labels.
|
97 |
# Specifically, randomly choose num_new_labels indices.
|
|
|
91 |
label_list, label_fractions = get_label_fractions(read_label_frequencies())
|
92 |
|
93 |
# How many new random labels are we creating?
|
94 |
+
num_new_labels = int(round(NUM_EXAMPLES * float(percentage) * .01))
|
95 |
|
96 |
# Create a set of indices that are randomly chosen, to change their labels.
|
97 |
# Specifically, randomly choose num_new_labels indices.
|