Spaces:
Sleeping
Sleeping
File size: 313 Bytes
056b5cc e0d8673 056b5cc fe332c7 7b11600 |
1 2 3 4 5 6 7 8 9 10 |
from fastapi import FastAPI
from transformers import pipeline
app = FastAPI()
# Load a Hugging Face model
model = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
print("i am gherer enjoying ")
@app.post("/predict")
async def predict():
return { "i am in lodhran "} |