aamirtaymoor commited on
Commit
aa55588
·
verified ·
1 Parent(s): 81f520e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -9,7 +9,7 @@ class TextRatingRequest(BaseModel):
9
  text: str
10
  rating: int
11
 
12
- @app.get("/predict")
13
  def read_root(text_rating: TextRatingRequest):
14
  text = text_rating.text
15
  rating = text_rating.rating
 
9
  text: str
10
  rating: int
11
 
12
+ @app.post("/predict")
13
  def read_root(text_rating: TextRatingRequest):
14
  text = text_rating.text
15
  rating = text_rating.rating