Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -160,7 +160,7 @@ def gradient_cuff_reject(message,with_defense, sample_times,perturb_times,thresh
|
|
160 |
return False
|
161 |
|
162 |
def chat(message, history, with_defense,perturb_times):
|
163 |
-
sample_times=
|
164 |
threshold=thresholds[perturb_times-1]
|
165 |
if gradient_cuff_reject(message,with_defense, sample_times, perturb_times, threshold):
|
166 |
answer="[Gradient Cuff Rejection] I cannot fulfill your request".split(" ")
|
|
|
160 |
return False
|
161 |
|
162 |
def chat(message, history, with_defense,perturb_times):
|
163 |
+
sample_times=2
|
164 |
threshold=thresholds[perturb_times-1]
|
165 |
if gradient_cuff_reject(message,with_defense, sample_times, perturb_times, threshold):
|
166 |
answer="[Gradient Cuff Rejection] I cannot fulfill your request".split(" ")
|