arshadrana commited on
Commit
e0d8673
·
verified ·
1 Parent(s): c4349ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)