Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -14,6 +14,7 @@ class TextRatingRequest(BaseModel):
|
|
| 14 |
def read_root(text_rating: TextRatingRequest):
|
| 15 |
text = text_rating.text
|
| 16 |
rating = text_rating.rating
|
|
|
|
| 17 |
raw_data = {"text": text, "star_rating": rating, "skip": skip}
|
| 18 |
# processed_data = get_review_sentiment(raw_data)
|
| 19 |
ml = MlProcessing(comment_dict=raw_data)
|
|
|
|
| 14 |
def read_root(text_rating: TextRatingRequest):
|
| 15 |
text = text_rating.text
|
| 16 |
rating = text_rating.rating
|
| 17 |
+
skip = False
|
| 18 |
raw_data = {"text": text, "star_rating": rating, "skip": skip}
|
| 19 |
# processed_data = get_review_sentiment(raw_data)
|
| 20 |
ml = MlProcessing(comment_dict=raw_data)
|