Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -180,8 +180,8 @@ def gradient_cuff_reject(message,with_defense, sample_times,perturb_times,thresh
|
|
180 |
return False
|
181 |
|
182 |
def chat(message, history, with_defense,threshold):
|
183 |
-
perturb_times=
|
184 |
-
sample_times=
|
185 |
#threshold=thresholds[perturb_times-1]
|
186 |
if gradient_cuff_reject(message,with_defense, sample_times, perturb_times, threshold):
|
187 |
answer="[Gradient Cuff Rejection] I cannot fulfill your request".split(" ")
|
|
|
180 |
return False
|
181 |
|
182 |
def chat(message, history, with_defense,threshold):
|
183 |
+
perturb_times=9
|
184 |
+
sample_times=10
|
185 |
#threshold=thresholds[perturb_times-1]
|
186 |
if gradient_cuff_reject(message,with_defense, sample_times, perturb_times, threshold):
|
187 |
answer="[Gradient Cuff Rejection] I cannot fulfill your request".split(" ")
|