huolongguo10 commited on
Commit
e4a9c89
1 Parent(s): ab40822

Update app.py

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