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