Skip to content
New issue

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

[Question]: doccano=1.6.2,autolabeling无法实现,一直转圈 #9744

Open
XJJ1213 opened this issue Jan 3, 2025 · 1 comment
Open
Assignees
Labels
question Further information is requested

Comments

@XJJ1213
Copy link

XJJ1213 commented Jan 3, 2025

请提出你的问题

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)

image

@XJJ1213 XJJ1213 added the question Further information is requested label Jan 3, 2025
@XJJ1213
Copy link
Author

XJJ1213 commented Jan 3, 2025

Python 3.9.0
annotated-types 0.7.0
auto-labeling-pipeline 0.1.21
pydantic 1.10.10

@paddle-bot paddle-bot bot assigned ZHUI Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants