Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -9,7 +9,7 @@ class TextRatingRequest(BaseModel):
|
|
| 9 |
text: str
|
| 10 |
rating: int
|
| 11 |
|
| 12 |
-
@app.
|
| 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
|