Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ with gr.Blocks() as demo:
|
|
125 |
message = message[3:] # remove SOT token
|
126 |
|
127 |
if refusal_condition(history[-1][0]):
|
128 |
-
history = []
|
129 |
yield history
|
130 |
else:
|
131 |
data = {
|
|
|
125 |
message = message[3:] # remove SOT token
|
126 |
|
127 |
if refusal_condition(history[-1][0]):
|
128 |
+
history = [['[安全拒答]', None]]
|
129 |
yield history
|
130 |
else:
|
131 |
data = {
|