Spaces:
Sleeping
Sleeping
Prajjwal888
commited on
Commit
·
fe69c7b
1
Parent(s):
605e349
update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def predict_review(text):
|
|
10 |
label = result['label']
|
11 |
score = result['score']
|
12 |
|
13 |
-
if label == "
|
14 |
-
rating = random.randint(1,
|
15 |
else:
|
16 |
rating = random.randint(7, 10)
|
17 |
|
|
|
10 |
label = result['label']
|
11 |
score = result['score']
|
12 |
|
13 |
+
if label == "LABEL_0":
|
14 |
+
rating = random.randint(1, 4)
|
15 |
else:
|
16 |
rating = random.randint(7, 10)
|
17 |
|