fb700 commited on
Commit
723f191
1 Parent(s): 9345147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1112,7 +1112,7 @@ def netOrNotnet(
1112
  user_input_prompt = '请判断这个指令:“' + user_input + '”是否需要通过网络搜索才能准确完成,你只需要回答"是"或者"否",不要其它多余的内容'
1113
 
1114
  response, history = model.chat(tokenizer, user_input_prompt, history=[])
1115
- if '' in response or '不需要' in response:
1116
  NET = True
1117
  else:
1118
  NET = False
 
1112
  user_input_prompt = '请判断这个指令:“' + user_input + '”是否需要通过网络搜索才能准确完成,你只需要回答"是"或者"否",不要其它多余的内容'
1113
 
1114
  response, history = model.chat(tokenizer, user_input_prompt, history=[])
1115
+ if '否。' in response or '不需要' in response:
1116
  NET = True
1117
  else:
1118
  NET = False