aamirtaymoor commited on
Commit
19f4421
·
verified ·
1 Parent(s): 613bc8a

Update main.py

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