Spaces:
Running
Running
from transformers import pipeline | |
# 加载模型 | |
#model = pipeline('text-classification') | |
def predict(text): | |
try: | |
result = text + ' is a good movie' | |
return result | |
except Exception as e: | |
return {'error': str(e)} |