Spaces:
Sleeping
Sleeping
File size: 261 Bytes
f655296 |
1 2 3 4 5 6 7 8 9 |
from transformers import pipeline
from fastapi import FastAPI
app = FastAPI()
classifier = pipeline("text-classification", model="KeivanR/Qwen2.5-1.5B-Instruct-MLB-clf_lora-1743189446")
@app.post("/predict")
def predict(text: str):
return classifier(text) |