Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "很抱歉,我无法回答这个问题"
|