Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ from transformers import pipeline
|
|
| 3 |
app = FastAPI()
|
| 4 |
# Load a Hugging Face model
|
| 5 |
model = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
|
|
|
|
| 6 |
@app.post("/predict")
|
| 7 |
async def predict(input_text: str):
|
| 8 |
prediction = model(input_text)
|
|
|
|
| 3 |
app = FastAPI()
|
| 4 |
# Load a Hugging Face model
|
| 5 |
model = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
|
| 6 |
+
print("i am gherer enjoying ")
|
| 7 |
@app.post("/predict")
|
| 8 |
async def predict(input_text: str):
|
| 9 |
prediction = model(input_text)
|