YC-Chen commited on
Commit
c5c844c
1 Parent(s): 4230e7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ with gr.Blocks() as demo:
177
  yield history
178
 
179
  if refusal_condition(history[-1][1]):
180
- history[-1][1] = history[-1][1] + '\n\n**[系統指示:以上內容有錯誤的疑慮]**'
181
  yield history
182
 
183
  print('== Record ==\nQuery: {query}\nResponse: {response}'.format(query=repr(message), response=repr(history[-1][1])))
 
177
  yield history
178
 
179
  if refusal_condition(history[-1][1]):
180
+ history[-1][1] = history[-1][1] + '\n\n**[系統指示:偵測到以上內容有錯誤的可能性,請自行查核事實]**'
181
  yield history
182
 
183
  print('== Record ==\nQuery: {query}\nResponse: {response}'.format(query=repr(message), response=repr(history[-1][1])))