We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doccano 1.6.2 以下是示例代码
from flask import Flask, request, jsonify from paddlenlp import Taskflow app = Flask(__name__) @app.route("/predict", methods=["POST"]) def predict(): # 获取text参数 text = request.form.get("text") or request.json.get("text") or request.values.get("text") # 模型推理得到结果 pred = "medical" # or "non-medical" # 返回结果 results = [{"result": pred}] return jsonify(results)
The text was updated successfully, but these errors were encountered:
Python 3.9.0 annotated-types 0.7.0 auto-labeling-pipeline 0.1.21 pydantic 1.10.10
Sorry, something went wrong.
ZHUI
No branches or pull requests
请提出你的问题
doccano 1.6.2
以下是示例代码
The text was updated successfully, but these errors were encountered: