Spaces:
Running
Running
Commit
·
5507a1b
1
Parent(s):
c627036
Update app.py
Browse files
app.py
CHANGED
@@ -129,8 +129,6 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
|
|
129 |
|
130 |
ordered_generations = sorted(zip(decoded_text, rewards, toxicities), key=lambda x: x[1], reverse=True)
|
131 |
|
132 |
-
print(ordered_generations)
|
133 |
-
|
134 |
if safety == "On":
|
135 |
ordered_generations = [(x, y, z) for (x, y, z) in ordered_generations if z >= toxicity_threshold]
|
136 |
|
|
|
129 |
|
130 |
ordered_generations = sorted(zip(decoded_text, rewards, toxicities), key=lambda x: x[1], reverse=True)
|
131 |
|
|
|
|
|
132 |
if safety == "On":
|
133 |
ordered_generations = [(x, y, z) for (x, y, z) in ordered_generations if z >= toxicity_threshold]
|
134 |
|