Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
|
|
55 |
api_name="/fetch_toxicity_level"
|
56 |
)
|
57 |
|
58 |
-
if float(json.loads(result[1])['sexual_minors']) > 0.
|
59 |
print('Minors')
|
60 |
raise gr.Error("Unauthorized request 💥!")
|
61 |
|
|
|
55 |
api_name="/fetch_toxicity_level"
|
56 |
)
|
57 |
|
58 |
+
if float(json.loads(result[1])['sexual_minors']) > 0.03 :
|
59 |
print('Minors')
|
60 |
raise gr.Error("Unauthorized request 💥!")
|
61 |
|