ClueAI commited on
Commit
71f164b
1 Parent(s): 6f62f6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
  model.to(device)
11
  model.half()
12
 
13
- base_info = "用户:你是谁?\n小元:我是元语智能公司研发的AI智能助手, 在不违反原则的情况下,我可以回答你的任何问题。\n"
14
  def preprocess(text):
15
  text = f"{base_info}{text}"
16
  text = text.replace("\n", "\\n").replace("\t", "\\t")
 
10
  model.to(device)
11
  model.half()
12
 
13
+ base_info = ""
14
  def preprocess(text):
15
  text = f"{base_info}{text}"
16
  text = text.replace("\n", "\\n").replace("\t", "\\t")