ClueAI commited on
Commit
feaebb5
1 Parent(s): ebb280e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def ChatYuan(api_key, text_prompt):
86
  # 需要返回得分的话,指定return_likelihoods="GENERATION"
87
  prediction = cl.generate(model_name='ChatYuan-large', prompt=text_prompt)
88
  # print the predicted text
89
- print('prediction: {}'.format(prediction.generations[0].text))
90
  response = prediction.generations[0].text
91
  if response == '':
92
  response = "很抱歉,我无法回答这个问题"
 
86
  # 需要返回得分的话,指定return_likelihoods="GENERATION"
87
  prediction = cl.generate(model_name='ChatYuan-large', prompt=text_prompt)
88
  # print the predicted text
89
+ #print('prediction: {}'.format(prediction.generations[0].text))
90
  response = prediction.generations[0].text
91
  if response == '':
92
  response = "很抱歉,我无法回答这个问题"