Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ with gr.Blocks() as demo:
|
|
138 |
message = message[3:] # remove SOT token
|
139 |
|
140 |
if refusal_condition(history[-1][0]):
|
141 |
-
history = [['[安全拒答啟動]', '請清除再開啟對話']]
|
142 |
yield history
|
143 |
else:
|
144 |
data = {
|
|
|
138 |
message = message[3:] # remove SOT token
|
139 |
|
140 |
if refusal_condition(history[-1][0]):
|
141 |
+
history = [['[安全拒答啟動]', '[安全拒答啟動] 請清除再開啟對話']]
|
142 |
yield history
|
143 |
else:
|
144 |
data = {
|