YC-Chen commited on
Commit
8c8cc09
·
verified ·
1 Parent(s): 549676c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = {